summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-10-02 14:22:02 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-02 08:54:03 -0700
commite662ce1cec935e13b7f3c078e527e1b05dfeaceb (patch)
treede364f114a057b17489dc3bb1b3fe796203177ba /desktop-widgets/plugins
parentdd17c6355d5367fd055f6c7c0320bc744f9256e6 (diff)
downloadsubsurface-e662ce1cec935e13b7f3c078e527e1b05dfeaceb.tar.gz
[Facebook] Fill the info struct
This will be used to send the profile to Facebook Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/plugins')
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
index 75cc0ed23..ab79c8731 100644
--- a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
+++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
@@ -196,6 +196,11 @@ void FacebookManager::sendDive()
if (dialog.exec() != QDialog::Accepted)
return;
+ fbInfo.bodyText = dialog.text();
+ fbInfo.profileSize = dialog.profileSize();
+ fbInfo.profileData = grabProfilePixmap();
+ fbInfo.albumId = QString(); // request Album Id wil handle that.
+
requestAlbumId();
QUrl url(graphApi + QString(prefs.facebook.album_id) + "/photos?" +