mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make lastUsedImageDir static to prevent a crash
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a814a5c904
commit
226b55893d
2 changed files with 2 additions and 3 deletions
|
@ -52,7 +52,7 @@ public slots:
|
||||||
void shiftTimes();
|
void shiftTimes();
|
||||||
void loadImages();
|
void loadImages();
|
||||||
void uploadToDivelogsDE();
|
void uploadToDivelogsDE();
|
||||||
QString lastUsedImageDir();
|
static QString lastUsedImageDir();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void currentDiveChanged(int divenr);
|
void currentDiveChanged(int divenr);
|
||||||
|
|
|
@ -180,9 +180,8 @@ void ShiftImageTimesDialog::syncCameraClicked()
|
||||||
QDateTime dcDateTime = QDateTime();
|
QDateTime dcDateTime = QDateTime();
|
||||||
QStringList fileNames = QFileDialog::getOpenFileNames(this,
|
QStringList fileNames = QFileDialog::getOpenFileNames(this,
|
||||||
tr("Open Image File"),
|
tr("Open Image File"),
|
||||||
MainWindow().dive_list()->lastUsedImageDir(),
|
DiveListView::lastUsedImageDir(),
|
||||||
tr("Image Files (*.jpg *.jpeg *.pnm *.tif *.tiff)"));
|
tr("Image Files (*.jpg *.jpeg *.pnm *.tif *.tiff)"));
|
||||||
|
|
||||||
if (fileNames.isEmpty())
|
if (fileNames.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue