From 339f21438461310797d6e277248c9d8a2f98df7d Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 7 Jan 2018 10:35:26 +0100 Subject: [PATCH] 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 --- desktop-widgets/mainwindow.cpp | 1 - 1 file changed, 1 deletion(-) 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.