From 38ff7d87c806a2391fc35f52d5c9e04fb996b1f6 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Fri, 29 Aug 2014 17:07:31 +0200 Subject: [PATCH] Hide crashreporter config option if not build with crashreporter enabled --- src/gui/generalsettings.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index 16ac512f7..06115be5e 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -23,6 +23,8 @@ #include "updater/updater.h" #include "updater/ocupdater.h" +#include "config.h" + #include #include @@ -57,6 +59,10 @@ GeneralSettings::GeneralSettings(QWidget *parent) : connect(_ui->monoIconsCheckBox, SIGNAL(toggled(bool)), SLOT(saveMiscSettings())); connect(_ui->crashreporterCheckBox, SIGNAL(toggled(bool)), SLOT(saveMiscSettings())); +#ifndef WITH_CRASHREPORTER + _ui->crashreporterCheckBox->setVisible(false); +#endif + // OEM themes are not obliged to ship mono icons, so there // is no point in offering an option QString themeDir = QString::fromLatin1(":/mirall/theme/%1/")