mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
d59e89e569
commit
5b77b162a3
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue