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>
This commit is contained in:
Berthold Stoeger 2018-01-07 10:35:26 +01:00 committed by Jan Mulder
parent 099662023c
commit 339f214384

View file

@ -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.