summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/mainwindow.cpp14
-rw-r--r--desktop-widgets/mainwindow.h1
2 files changed, 4 insertions, 11 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 29cc2c1e4..c2c3f63dd 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -567,7 +567,7 @@ void MainWindow::on_actionCloudstoragesave_triggered()
return;
setCurrentFile(qPrintable(filename));
- setFileClean();
+ Command::setClean();
}
void MainWindow::on_actionCloudOnline_triggered()
@@ -623,12 +623,6 @@ bool MainWindow::okToClose(QString message)
return true;
}
-void MainWindow::setFileClean()
-{
- mark_divelist_changed(false);
- Command::setClean();
-}
-
void MainWindow::closeCurrentFile()
{
/* free the dives and trips */
@@ -640,7 +634,7 @@ void MainWindow::closeCurrentFile()
if (!existing_filename)
setTitle();
disableShortcuts();
- setFileClean();
+ Command::setClean();
}
void MainWindow::updateCloudOnlineStatus()
@@ -1444,7 +1438,7 @@ int MainWindow::file_save_as(void)
return -1;
setCurrentFile(qPrintable(filename));
- setFileClean();
+ Command::setClean();
addRecentFile(filename, true);
return 0;
}
@@ -1481,7 +1475,7 @@ int MainWindow::file_save(void)
}
if (is_cloud)
hideProgressBar();
- setFileClean();
+ Command::setClean();
addRecentFile(QString(existing_filename), true);
return 0;
}
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h
index 4785760a5..e0d53b20d 100644
--- a/desktop-widgets/mainwindow.h
+++ b/desktop-widgets/mainwindow.h
@@ -198,7 +198,6 @@ private:
void writeSettings();
int file_save();
int file_save_as();
- void setFileClean();
void beginChangeState(CurrentState s);
void saveSplitterSizes();
void toggleCollapsible(bool toggle);