diff options
-rw-r--r-- | qt-ui/preferences.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index fcddb618c..d0adfabf4 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -33,8 +33,11 @@ PreferencesDialog::PreferencesDialog(QWidget *parent, Qt::WindowFlags f) : QDial #if defined(Q_OS_ANDROID) || !defined(FBSUPPORT) for (int i = 0; i < ui.listWidget->count(); i++) { - if (ui.listWidget->item(i)->text() == "Facebook") + if (ui.listWidget->item(i)->text() == "Facebook") { delete ui.listWidget->item(i); + QWidget *fbpage = ui.stackedWidget->widget(i); + ui.stackedWidget->removeWidget(fbpage); + } } #endif |