mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
449c6fc6f2
commit
aeaa050306
3 changed files with 14 additions and 14 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue