From 5b77b162a3c5b0e2f4d00a02a1de2fbee06842fc Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 16 Sep 2015 18:36:23 -0300 Subject: Remove the fb preferences page if build without fb Somehow I broke this. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/preferences.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qt-ui') 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 -- cgit v1.2.3-70-g09d2