[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kaccounts-providers] /: Close the Wizard widget if done with no service or with result != 1
From:       Alex Fiestas <afiestas () kde ! org>
Date:       2015-10-15 21:01:22
Message-ID: E1ZmpeM-0000yK-Ix () scm ! kde ! org
[Download RAW message or body]

Git commit 30320d184140e718d8a4f4bdb7c805ec3f1cf3aa by Alex Fiestas.
Committed on 20/04/2012 at 14:08.
Pushed by mklapetek into branch 'master'.

Close the Wizard widget if done with no service or with result != 1

M  +2    -1    owncloud.cpp

http://commits.kde.org/kaccounts-providers/30320d184140e718d8a4f4bdb7c805ec3f1cf3aa

diff --git a/owncloud.cpp b/owncloud.cpp
index 0eec287..11f7889 100644
--- a/owncloud.cpp
+++ b/owncloud.cpp
@@ -55,7 +55,8 @@ OwnCloudWizard::~OwnCloudWizard()
 
 void OwnCloudWizard::done(int result)
 {
-    if (result != 1) {
+    if (result != 1 || m_services.isEmpty()) {
+        QWizard::done(result);
         return;
     }
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic