diff options
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r-- | qt-ui/divelistview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index 1b19d06fd..50d3a8bf3 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -813,8 +813,8 @@ void DiveListView::loadImages() updateLastUsedImageDir(QFileInfo(fileNames[0]).dir().path()); - ShiftImageTimesDialog* shiftDialog = ShiftImageTimesDialog::instance(); - shiftDialog->exec(); + ShiftImageTimesDialog shiftDialog(this); + shiftDialog.exec(); for (int i = 0; i < fileNames.size(); ++i) { struct tm tm; @@ -829,7 +829,7 @@ void DiveListView::loadImages() tm.tm_hour = hour; tm.tm_min = min; tm.tm_sec = sec; - imagetime = utc_mktime(&tm) + shiftDialog->amount; + imagetime = utc_mktime(&tm) + shiftDialog.amount(); int j = 0; struct dive *dive; for_each_dive(j, dive){ |