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

List:       kde-commits
Subject:    [akonadi-airsync] /: on authorisation error, set resource to Broken
From:       Martin Koller <kollix () aon ! at>
Date:       2015-02-28 18:11:20
Message-ID: E1YRlrE-0001Rz-82 () scm ! kde ! org
[Download RAW message or body]

Git commit ca5ffad4c8507c7f5791325832fff688803af8a6 by Martin Koller.
Committed on 28/02/2015 at 18:09.
Pushed by mkoller into branch 'master'.

on authorisation error, set resource to Broken

Setting to NotConfigured does not show a notification popup,
so better use Broken status

M  +1    -1    AirsyncDownloadResource.cxx

http://commits.kde.org/akonadi-airsync/ca5ffad4c8507c7f5791325832fff688803af8a6

diff --git a/AirsyncDownloadResource.cxx b/AirsyncDownloadResource.cxx
index 97c1906..5c898b5 100644
--- a/AirsyncDownloadResource.cxx
+++ b/AirsyncDownloadResource.cxx
@@ -224,7 +224,7 @@ void AirsyncDownloadResource::authRequired()
 {
   QString msg = i18n("The server authentication failed. Check username and password.");
   cancelTask(msg);
-  emit status(NotConfigured, msg);
+  emit status(Broken, msg);
 }
 
 //--------------------------------------------------------------------------------

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

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