[Pkg-owncloud-commits] [owncloud-client] 60/83: ShibCredentials: Ensure that _stillValid is not reset while the browser window is open

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat May 31 11:31:44 UTC 2014


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 4fd368c992e2fa0dded32cd5eae8c5cd51c94164
Author: Daniel Molkentin <danimo at owncloud.com>
Date:   Wed May 28 02:29:14 2014 +0200

    ShibCredentials: Ensure that _stillValid is not reset while the browser window is open
    
    This will cause the browser window to open again after it has been told to close
    if a network job has run in the background while the browser window was visible.
    
    Fixes #1814
---
 src/creds/shibbolethcredentials.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/creds/shibbolethcredentials.cpp b/src/creds/shibbolethcredentials.cpp
index 1d93747..a087c45 100644
--- a/src/creds/shibbolethcredentials.cpp
+++ b/src/creds/shibbolethcredentials.cpp
@@ -158,6 +158,10 @@ QNetworkAccessManager* ShibbolethCredentials::getQNAM() const
 
 void ShibbolethCredentials::slotReplyFinished(QNetworkReply* r)
 {
+    if (!_browser.isNull()) {
+        return;
+    }
+
     QVariant target = r->attribute(QNetworkRequest::RedirectionTargetAttribute);
     if (target.isValid()) {
         _stillValid = false;

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