diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-07-07 01:23:36 +0200 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2015-07-07 01:23:36 +0200 |
commit | 51dd78f9f3948f7cb5a7fcc87e59aa71f9375597 (patch) | |
tree | 708c24cdd33e1c74fcdaacab567edbb89b9d0a5e /mainwindow.cpp | |
parent | 2143b18904d61a9afe0ad5d38db86773452b53ad (diff) |
always re-enable config
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index db119cac..c0991381 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -255,6 +255,7 @@ bool MainWindow::checkConfig() { ui->updateButton->hide(); } ui->lineEdit->setFocus(); + startupPhase = false; return true; } @@ -586,11 +587,12 @@ void MainWindow::enableUiElements(bool state) { ui->lineEdit->setEnabled(state); ui->addButton->setEnabled(state); ui->usersButton->setEnabled(state); + ui->configButton->setEnabled(state); + // is a file selected? state &= ui->treeView->currentIndex().isValid(); ui->deleteButton->setEnabled(state); ui->editButton->setEnabled(state); ui->pushButton->setEnabled(state); - ui->configButton->setEnabled(state); } /** |