refs #526, finetuning in 2 components

This commit is contained in:
Klaus Basan
2016-01-02 21:10:05 +01:00
parent 483c48cb82
commit 5a17506a97
2 changed files with 16 additions and 4 deletions

View File

@@ -23,8 +23,16 @@ namespace BlackGui
ui(new Ui::CDbDebugDatabaseSetup)
{
ui->setupUi(this);
this->setEnabled(CProject::isRunningInDeveloperEnvironment());
connect(ui->cb_EnableServerDebugging, &QCheckBox::toggled, this, &CDbDebugDatabaseSetup::ps_debugChanged);
bool enabled = CProject::isRunningInDeveloperEnvironment();
this->setEnabled(enabled);
if (!enabled)
{
this->setToolTip("Disabled, cannot be set!");
}
else
{
connect(ui->cb_EnableServerDebugging, &QCheckBox::toggled, this, &CDbDebugDatabaseSetup::ps_debugChanged);
}
}
CDbDebugDatabaseSetup::~CDbDebugDatabaseSetup()