Skip to content

Commit c50e4f2

Browse files
review HIG import vector dialog
1 parent 2d2390d commit c50e4f2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

python/plugins/db_manager/dlg_import_vector.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -273,23 +273,23 @@ def accept(self):
273273

274274
# sanity checks
275275
if self.inLayer is None:
276-
QMessageBox.information(self, self.tr("Import to database"), self.tr("Input layer missing or not valid"))
276+
QMessageBox.critical(self, self.tr("Import to Database"), self.tr("Input layer missing or not valid."))
277277
return
278278

279279
if self.cboTable.currentText() == "":
280-
QMessageBox.information(self, self.tr("Import to database"), self.tr("Output table name is required"))
280+
QMessageBox.critical(self, self.tr("Import to Database"), self.tr("Output table name is required."))
281281
return
282282

283283
if self.chkSourceSrid.isEnabled() and self.chkSourceSrid.isChecked():
284284
if not self.widgetSourceSrid.crs().isValid():
285-
QMessageBox.critical(self, self.tr("Import to database"),
286-
self.tr("Invalid source srid: must be a valid crs"))
285+
QMessageBox.critical(self, self.tr("Import to Database"),
286+
self.tr("Invalid source srid: must be a valid crs."))
287287
return
288288

289289
if self.chkTargetSrid.isEnabled() and self.chkTargetSrid.isChecked():
290290
if not self.widgetTargetSrid.crs().isValid():
291-
QMessageBox.critical(self, self.tr("Import to database"),
292-
self.tr("Invalid target srid: must be a valid crs"))
291+
QMessageBox.critical(self, self.tr("Import to Database"),
292+
self.tr("Invalid target srid: must be a valid crs."))
293293
return
294294

295295
with OverrideCursor(Qt.WaitCursor):
@@ -369,7 +369,7 @@ def accept(self):
369369

370370
if ret != 0:
371371
output = QgsMessageViewer()
372-
output.setTitle(self.tr("Import to database"))
372+
output.setTitle(self.tr("Import to Database"))
373373
output.setMessageAsPlainText(self.tr("Error {0}\n{1}").format(ret, errMsg))
374374
output.showMessage()
375375
return
@@ -380,7 +380,7 @@ def accept(self):
380380

381381
self.db.connection().reconnect()
382382
self.db.refresh()
383-
QMessageBox.information(self, self.tr("Import to database"), self.tr("Import was successful."))
383+
QMessageBox.information(self, self.tr("Import to Database"), self.tr("Import was successful."))
384384
return QDialog.accept(self)
385385

386386
def closeEvent(self, event):

0 commit comments

Comments
 (0)