[Pkg-owncloud-commits] [owncloud-client] 17/78: Shibboleth: Show the inspector if OWNCLOUD_SHIBBOLETH_DEBUG is set
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Jun 24 16:29:38 UTC 2016
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 cf1fe690a316bb40c738ec408ca0f7edd686ec79
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Tue May 17 12:28:07 2016 +0200
Shibboleth: Show the inspector if OWNCLOUD_SHIBBOLETH_DEBUG is set
Help to debug https://github.com/owncloud/enterprise/issues/1265
---
src/gui/creds/shibboleth/shibbolethwebview.cpp | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/gui/creds/shibboleth/shibbolethwebview.cpp b/src/gui/creds/shibboleth/shibbolethwebview.cpp
index 601bddf..f98a2c3 100644
--- a/src/gui/creds/shibboleth/shibbolethwebview.cpp
+++ b/src/gui/creds/shibboleth/shibbolethwebview.cpp
@@ -38,7 +38,12 @@ namespace OCC
class UserAgentWebPage : public QWebPage {
public:
- UserAgentWebPage(QObject *parent) : QWebPage(parent) {}
+ UserAgentWebPage(QObject *parent) : QWebPage(parent)
+ {
+ if (!qgetenv("OWNCLOUD_SHIBBOLETH_DEBUG").isEmpty()) {
+ settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
+ }
+ }
QString userAgentForUrl(const QUrl &url ) const {
return QWebPage::userAgentForUrl(url) + " " + Utility::userAgentString();
}
--
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