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 #include -#include #include #include #include @@ -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);