diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-12-23 19:10:57 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-24 06:37:28 -0800 |
commit | cc69e6ffa2a3f8e6e65e02459d8508f688fdaaf2 (patch) | |
tree | 9c2596baf13ff07429850ef10d6d52efe61ebb50 /qt-ui | |
parent | 1a5cd0e155f8ae6c9adde0555c8117ac7aa710e5 (diff) | |
download | subsurface-cc69e6ffa2a3f8e6e65e02459d8508f688fdaaf2.tar.gz |
State that you are connected on Facebook.
TODO: Disconnect from facebook.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/preferences.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index 2378a1fd6..b57040c83 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -33,7 +33,14 @@ PreferencesDialog::PreferencesDialog(QWidget *parent, Qt::WindowFlags f) : QDial "&redirect_uri=http://www.facebook.com/connect/login_success.html" "&response_type=token"); - ui.facebookWebView->setUrl(urlLogin); + QSettings settings; + settings.beginGroup("WebApps"); + settings.beginGroup("Facebook"); + if(settings.allKeys().contains("ConnectToken")){ + ui.facebookWebView->setHtml("You are connected on Facebook, yey."); + } else { + ui.facebookWebView->setUrl(urlLogin); + } connect(ui.facebookWebView, &QWebView::urlChanged, this, &PreferencesDialog::facebookLoginResponse); |