mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
1a5cd0e155
commit
cc69e6ffa2
1 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue