[Pkg-owncloud-commits] [owncloud-client] 431/484: Settings dialog: Fix crash when deleting account #4202

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:38:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 9e66a6bec6747a38fe4394e906ff0a17f4221aab
Author: Christian Kamm <mail at ckamm.de>
Date:   Thu Nov 26 13:26:19 2015 +0100

    Settings dialog: Fix crash when deleting account #4202
---
 src/gui/settingsdialog.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp
index 68d71eb..5662c13 100644
--- a/src/gui/settingsdialog.cpp
+++ b/src/gui/settingsdialog.cpp
@@ -217,9 +217,13 @@ void SettingsDialog::accountRemoved(AccountState *s)
         if (as->accountsState() == s) {
             _toolBar->removeAction(it.key());
 
-            delete it.key();
-            delete it.value();
+            it.key()->deleteLater();
+            it.value()->deleteLater();
             _actionGroupWidgets.erase(it);
+
+            if (_ui->stack->currentWidget() == it.value()) {
+                showFirstPage();
+            }
             break;
         }
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list