Skip to content

Commit

Permalink
fixing QMessageBox import/calls
Browse files Browse the repository at this point in the history
  • Loading branch information
zsiki committed Dec 22, 2018
1 parent 2451288 commit 1f7f74d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion realcentroid.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import os.path
from PyQt5.QtCore import QSettings, QTranslator, qVersion, QCoreApplication, Qt
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QAction
from PyQt5.QtWidgets import QAction, QMessageBox

from qgis.core import QgsVectorFileWriter, QgsWkbTypes, QgsFeature, \
QgsMessageLog, QgsVectorLayer, QgsProject
Expand Down
4 changes: 2 additions & 2 deletions realcentroid_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ def browse(self):
def ok(self):
""" check widgets """
if len(self.layerBox.currentText()) == 0:
QtGui.QMessageBox.warning(self, "Realcentroid", \
QtWidgets.QMessageBox.warning(self, "Realcentroid", \
QtGui.QApplication.translate("RealCentroid", \
"No polygon layer selected", None))
return
if len(self.pointEdit.text()) == 0:
QtGui.QMessageBox.warning(self, "Realcentroid", \
QtWidgets.QMessageBox.warning(self, "Realcentroid", \
QtGui.QApplication.translate("RealCentroid", \
"No point layer given", None))
return
Expand Down

0 comments on commit 1f7f74d

Please sign in to comment.