diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2018-09-05 19:38:31 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2018-11-04 18:38:28 +0100 |
commit | dcd17d9b0ee0948cc3dc153f0b42b29fa2b0c0d5 (patch) | |
tree | 082fae952e15d9a6517769417f9d2c9787081b4b | |
parent | c0da481e65df399a6a7250b58b466df4741c855e (diff) |
Show Programs tab in config dialog if config is broken.
It is confusing to show a tab that has nothing to do
with the problem the user needs to fix.
-rw-r--r-- | src/configdialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configdialog.cpp b/src/configdialog.cpp index ae07ad2c..819155c3 100644 --- a/src/configdialog.cpp +++ b/src/configdialog.cpp @@ -107,6 +107,12 @@ ConfigDialog::ConfigDialog(MainWindow *parent) useSelection(QtPassSettings::isUseSelection()); } + if (Util::checkConfig()) { + // Show Programs tab, which is likely + // what the user needs to fix now. + ui->tabWidget->setCurrentIndex(1); + } + connect(ui->profileTable, &QTableWidget::itemChanged, this, &ConfigDialog::onProfileTableItemChanged); connect(this, &ConfigDialog::accepted, this, &ConfigDialog::on_accepted); |