MainWindow: Don't show error message when cancelling extenstion loading

Don't show a file-not-found message box when cancelling the open file
dialog to select a SQLite extension.
This commit is contained in:
Martin Kleusberg
2013-06-17 21:43:50 +02:00
parent 7167129464
commit b4ce93c6e2

View File

@@ -1181,6 +1181,9 @@ void MainWindow::loadExtension()
PreferencesDialog::getSettingsValue("db", "defaultlocation").toString(),
tr("Extensions(*.so *.dll);;All files(*)"));
if(file.isEmpty())
return;
if(db.loadExtension(file))
QMessageBox::information(this, QApplication::applicationName(), tr("Extension successfully loaded."));
else