summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Boris Barbulovski <bbarbulovski@gmail.com>2014-02-08 23:56:47 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-09 08:19:38 -0800
commitaeaa0503069f2f1f095afed6f19d4fefa19a5385 (patch)
treee30d84022b4e8cc6924be7fb3a4ffcd26a1d5e05 /qt-ui/divelistview.cpp
parent449c6fc6f2cd17bc9c4322aabc32f2b2bf88a220 (diff)
downloadsubsurface-aeaa0503069f2f1f095afed6f19d4fefa19a5385.tar.gz
ShiftImageTimesDialog class cleanup.
* Remove static ShiftImageTimesDialog::instance() method * Add ShiftImageTimesDialog::amount() member Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp6
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){