flake8 and Qt6 fix
This commit is contained in:
@@ -12,6 +12,7 @@ from qgis.core import (
|
||||
QgsSettings,
|
||||
QgsGeometry,
|
||||
QgsWkbTypes,
|
||||
Qgis,
|
||||
)
|
||||
from qgis.PyQt import QtGui, QtCore
|
||||
from qgis.PyQt.QtGui import QIcon
|
||||
@@ -238,7 +239,7 @@ class Metabase_Editor(QDialog, EDITOR_CLASS):
|
||||
self.new_data(layer)
|
||||
else:
|
||||
self.close()
|
||||
iface.messageBar().pushMessage("Information:", "Cette couche n'est pas stockée dans PostgreSQL", level=1, duration=30)
|
||||
iface.messageBar().pushMessage("Information:", "Cette couche n'est pas stockée dans PostgreSQL", level=Qgis.Warning, duration=30)
|
||||
|
||||
def is_in_psql(self, layer):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user