diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-01-07 10:35:26 +0100 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-08 12:01:04 +0100 |
commit | 339f21438461310797d6e277248c9d8a2f98df7d (patch) | |
tree | 5eb8d62ed8b2776bfe2d8a5f96a5687146a55b72 /desktop-widgets/mainwindow.cpp | |
parent | 099662023c89f5bb0a3e2e1b803de22d56b20f6b (diff) | |
download | subsurface-339f21438461310797d6e277248c9d8a2f98df7d.tar.gz |
Remove redundant setting of prefs.git_local_only
In MainWindow::on_actionCloudOnline_triggered(), prefs.git_local_only
was set twice in the case of going online. Remove the second,
unnecessary, assignment.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index b13980c85..74eaaa60b 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -660,7 +660,6 @@ void MainWindow::on_actionCloudOnline_triggered() prefs.git_local_only = isOffline; if (!isOffline) { // User requests to go online. Try to sync cloud storage - prefs.git_local_only = false; if (unsaved_changes()) { // If there are unsaved changes, ask the user if they want to save them. // If they don't, they have to sync manually. |