diff options
Diffstat (limited to 'desktop-widgets/plugins/facebook/facebookconnectwidget.cpp')
-rw-r--r-- | desktop-widgets/plugins/facebook/facebookconnectwidget.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp index 4562f48a7..49ac72861 100644 --- a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp +++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp @@ -10,7 +10,6 @@ #include <QNetworkCookieJar> #include <QUrlQuery> -#include <QEventLoop> #include <QHttpMultiPart> #include <QFile> #include <QBuffer> @@ -194,9 +193,14 @@ void FacebookManager::sendDive() requestAlbumId(); ProfileWidget2 *profile = MainWindow::instance()->graphics(); + + auto currSize = profile->size(); + profile->resize(1024,768); profile->setToolTipVisibile(false); QPixmap pix = profile->grab(); profile->setToolTipVisibile(true); + profile->resize(currSize); + QByteArray bytes; QBuffer buffer(&bytes); buffer.open(QIODevice::WriteOnly); |