summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-11-08 10:51:50 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-08 09:44:40 -0800
commit486857f2b4264295a078de5dad541122186d22ab (patch)
tree75d4cd4b0f4e142f49765310e743f7a4a595d944 /desktop-widgets/plugins
parent70e6840d51d876b4d906f3af0a4be71bd3233e48 (diff)
downloadsubsurface-486857f2b4264295a078de5dad541122186d22ab.tar.gz
Make it possible to connect to facebook again
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/plugins')
-rw-r--r--desktop-widgets/plugins/facebook/facebook_integration.cpp6
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.cpp1
2 files changed, 6 insertions, 1 deletions
diff --git a/desktop-widgets/plugins/facebook/facebook_integration.cpp b/desktop-widgets/plugins/facebook/facebook_integration.cpp
index 700c8f624..28e65254a 100644
--- a/desktop-widgets/plugins/facebook/facebook_integration.cpp
+++ b/desktop-widgets/plugins/facebook/facebook_integration.cpp
@@ -1,4 +1,7 @@
#include "facebook_integration.h"
+#include "facebookconnectwidget.h"
+
+#include <QDebug>
FacebookPlugin::FacebookPlugin(QObject* parent): QObject(parent)
{
@@ -12,7 +15,8 @@ bool FacebookPlugin::isConnected()
void FacebookPlugin::requestLogin()
{
-
+ FacebookConnectWidget connectDialog;
+ connectDialog.exec();
}
void FacebookPlugin::requestLogoff()
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
index 1f2e1b09d..b5e402617 100644
--- a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
+++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
@@ -275,6 +275,7 @@ void FacebookManager::sendDive()
}
FacebookConnectWidget::FacebookConnectWidget(QWidget *parent) : QDialog(parent), ui(new Ui::FacebookConnectWidget) {
+ ui->setupUi(this);
FacebookManager *fb = FacebookManager::instance();
facebookWebView = new QWebView(this);
ui->fbWebviewContainer->layout()->addWidget(facebookWebView);