summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-12-10 22:22:13 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-12-11 00:17:39 +0100
commitea0cbba804d5809c60d538d56e5542c9fa305d27 (patch)
tree10d4e530c0609ad4d5ab060621e852497f6e4248 /desktop-widgets/mainwindow.cpp
parentfa469aa86cfd4651cce07f03717427ec718bea81 (diff)
downloadsubsurface-ea0cbba804d5809c60d538d56e5542c9fa305d27.tar.gz
Remove second parameter (bool force) in set_filename()
The last force=false case was removed in commit 96d1cc570e31396039e4970d2bf75d5f00f1e550. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index a9dd960d0..7854a6977 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -611,7 +611,7 @@ void MainWindow::on_actionCloudstorageopen_triggered()
showProgressBar();
QByteArray fileNamePtr = QFile::encodeName(filename);
if (!parse_file(fileNamePtr.data())) {
- set_filename(fileNamePtr.data(), true);
+ set_filename(fileNamePtr.data());
setTitle(MWTF_FILENAME);
}
getNotificationWidget()->hideNotification();
@@ -642,7 +642,7 @@ void MainWindow::on_actionCloudstoragesave_triggered()
if (error)
return;
- set_filename(filename.toUtf8().data(), true);
+ set_filename(filename.toUtf8().data());
setTitle(MWTF_FILENAME);
mark_divelist_changed(false);
}
@@ -1655,7 +1655,7 @@ int MainWindow::file_save_as(void)
if (save_dives(filename.toUtf8().data()))
return -1;
- set_filename(filename.toUtf8().data(), true);
+ set_filename(filename.toUtf8().data());
setTitle(MWTF_FILENAME);
mark_divelist_changed(false);
addRecentFile(filename, true);
@@ -1801,7 +1801,7 @@ void MainWindow::loadFiles(const QStringList fileNames)
for (int i = 0; i < fileNames.size(); ++i) {
fileNamePtr = QFile::encodeName(fileNames.at(i));
if (!parse_file(fileNamePtr.data())) {
- set_filename(fileNamePtr.data(), true);
+ set_filename(fileNamePtr.data());
addRecentFile(fileNamePtr, false);
setTitle(MWTF_FILENAME);
}