mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Add CSV parsing trigger for zxu and zxl files
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
46074ebf21
commit
4955f858bf
1 changed files with 3 additions and 1 deletions
|
@ -1814,9 +1814,11 @@ void MainWindow::on_actionImportDiveLog_triggered()
|
|||
return;
|
||||
updateLastUsedDir(QFileInfo(fileNames[0]).dir().path());
|
||||
|
||||
QStringList logFiles = fileNames.filter(QRegExp("^.*\\.(?!(csv|txt|apd))", Qt::CaseInsensitive));
|
||||
QStringList logFiles = fileNames.filter(QRegExp("^.*\\.(?!(csv|txt|apd|zxu|zxl))", Qt::CaseInsensitive));
|
||||
QStringList csvFiles = fileNames.filter(".csv", Qt::CaseInsensitive);
|
||||
csvFiles += fileNames.filter(".apd", Qt::CaseInsensitive);
|
||||
csvFiles += fileNames.filter(".zxu", Qt::CaseInsensitive);
|
||||
csvFiles += fileNames.filter(".zxl", Qt::CaseInsensitive);
|
||||
QStringList txtFiles = fileNames.filter(".txt", Qt::CaseInsensitive);
|
||||
|
||||
if (logFiles.size()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue