summaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-09-16 18:36:23 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-16 21:16:58 -0700
commit5b77b162a3c5b0e2f4d00a02a1de2fbee06842fc (patch)
tree79b06243715713f0fb52dcd3ad37b076d5ef1344 /qt-ui/preferences.cpp
parentd59e89e569b732661633424fcf19f09e95b936fe (diff)
downloadsubsurface-5b77b162a3c5b0e2f4d00a02a1de2fbee06842fc.tar.gz
Remove the fb preferences page if build without fb
Somehow I broke this. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r--qt-ui/preferences.cpp5
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