summaryrefslogtreecommitdiffstats
path: root/qt-ui/simplewidgets.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-02-19 00:26:36 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-18 15:30:59 -0800
commit226b55893d78a3057c97e9d78fef450688631520 (patch)
tree2bd9474aed657631a4b583acc416a070e9b8957e /qt-ui/simplewidgets.cpp
parenta814a5c9046db7a3ecc352e5c257051dca41d839 (diff)
downloadsubsurface-226b55893d78a3057c97e9d78fef450688631520.tar.gz
Make lastUsedImageDir static to prevent a crash
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r--qt-ui/simplewidgets.cpp3
1 files changed, 1 insertions, 2 deletions
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;