Hide crashreporter config option if not build with crashreporter enabled

This commit is contained in:
Dominik Schmidt 2014-08-29 17:07:31 +02:00
parent 6abaad1ae8
commit 38ff7d87c8

View file

@ -23,6 +23,8 @@
#include "updater/updater.h"
#include "updater/ocupdater.h"
#include "config.h"
#include <QNetworkProxy>
#include <QDir>
@ -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/")