mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-01 09:29:20 -05:00
mainwindow: Add filter to the open file dialog
As with #230, we don't add the filter on OS X due to Qt bugs not yet fixed. See issue #266.
This commit is contained in:
+5
-1
@@ -200,7 +200,11 @@ bool MainWindow::fileOpen(const QString& fileName, bool dontAddToRecentFiles)
|
||||
wFile = QFileDialog::getOpenFileName(
|
||||
this,
|
||||
tr("Choose a database file"),
|
||||
PreferencesDialog::getSettingsValue("db", "defaultlocation").toString());
|
||||
PreferencesDialog::getSettingsValue("db", "defaultlocation").toString()
|
||||
#ifndef Q_OS_MAC // Filters on OS X are buggy
|
||||
, tr("SQLite database files (*.db *.sqlite *.sqlite3 *.db3);;All files (*)")
|
||||
#endif
|
||||
);
|
||||
}
|
||||
if(QFile::exists(wFile) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user