From kde-commits Thu Oct 15 21:01:22 2015 From: Alex Fiestas Date: Thu, 15 Oct 2015 21:01:22 +0000 To: kde-commits Subject: [kaccounts-providers] /: Close the Wizard widget if done with no service or with result != 1 Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=144494401425472 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 !=3D 1 M +2 -1 owncloud.cpp http://commits.kde.org/kaccounts-providers/30320d184140e718d8a4f4bdb7c805ec= 3f1cf3aa 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 !=3D 1) { + if (result !=3D 1 || m_services.isEmpty()) { + QWizard::done(result); return; } =