From 212cc575bf140d4cfbb8e7fa766ed4b2ff865bcc Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sun, 12 Jul 2015 23:16:46 +0530 Subject: Divinglog import: add .sql extension for import Generic divelog might come with the .sql extension, thus adding that to the file filter. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 305ddf6dc..4861ad60f 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -948,6 +948,7 @@ QString MainWindow::filter() f += "Dive log files ( *.ssrf "; f += "*.can *.CAN "; f += "*.db *.DB " ; + f += "*.sql *.SQL " ; f += "*.dld *.DLD "; f += "*.jlb *.JLB "; f += "*.lvd *.LVD "; @@ -1532,8 +1533,8 @@ void MainWindow::loadFiles(const QStringList fileNames) void MainWindow::on_actionImportDiveLog_triggered() { QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open dive log file"), lastUsedDir(), - tr("Dive log files (*.ssrf *.can *.csv *.db *.dld *.jlb *.lvd *.sde *.udcf *.uddf *.xml *.txt *.dlf *.apd" - "*.SSRF *.CAN *.CSV *.DB *.DLD *.JLB *.LVD *.SDE *.UDCF *.UDDF *.xml *.TXT *.DLF *.APD);;" + tr("Dive log files (*.ssrf *.can *.csv *.db *.sql *.dld *.jlb *.lvd *.sde *.udcf *.uddf *.xml *.txt *.dlf *.apd" + "*.SSRF *.CAN *.CSV *.DB *.SQL *.DLD *.JLB *.LVD *.SDE *.UDCF *.UDDF *.xml *.TXT *.DLF *.APD);;" "Cochran files (*.can *.CAN);;" "CSV files (*.csv *.CSV);;" "DiveLog.de files (*.dld *.DLD);;" -- cgit v1.2.3-70-g09d2