summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/divelistview.h2
-rw-r--r--qt-ui/simplewidgets.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h
index c77b85f24..f078a33f8 100644
--- a/qt-ui/divelistview.h
+++ b/qt-ui/divelistview.h
@@ -52,7 +52,7 @@ public slots:
void shiftTimes();
void loadImages();
void uploadToDivelogsDE();
- QString lastUsedImageDir();
+ static QString lastUsedImageDir();
signals:
void currentDiveChanged(int divenr);
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp
index 4ee3998b9..e73b23560 100644
--- a/qt-ui/simplewidgets.cpp
+++ b/qt-ui/simplewidgets.cpp
@@ -180,9 +180,8 @@ void ShiftImageTimesDialog::syncCameraClicked()
QDateTime dcDateTime = QDateTime();
QStringList fileNames = QFileDialog::getOpenFileNames(this,
tr("Open Image File"),
- MainWindow().dive_list()->lastUsedImageDir(),
+ DiveListView::lastUsedImageDir(),
tr("Image Files (*.jpg *.jpeg *.pnm *.tif *.tiff)"));
-
if (fileNames.isEmpty())
return;