mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-19 10:20:17 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user