diff --git a/Configuration.cpp b/Configuration.cpp index 03400aea6..d60b62286 100644 --- a/Configuration.cpp +++ b/Configuration.cpp @@ -603,6 +603,7 @@ QDir Configuration::data_dir () const {return m_->data_dir_;} QDir Configuration::writeable_data_dir () const {return m_->writeable_data_dir_;} QDir Configuration::temp_dir () const {return m_->temp_dir_;} +void Configuration::select_tab (int index) {m_->ui_->configuration_tabs->setCurrentIndex (index);} int Configuration::exec () {return m_->exec ();} bool Configuration::is_active () const {return m_->isVisible ();} diff --git a/Configuration.hpp b/Configuration.hpp index 924ebab82..bdeae5fb8 100644 --- a/Configuration.hpp +++ b/Configuration.hpp @@ -73,6 +73,7 @@ public: QWidget * parent = nullptr); ~Configuration (); + void select_tab (int); int exec (); bool is_active () const; diff --git a/mainwindow.cpp b/mainwindow.cpp index 603cc20fd..9112eec99 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -5598,6 +5598,7 @@ void MainWindow::rigFailure (QString const& reason) switch (m_rigErrorMessageBox.standardButton (clicked_button)) { case MessageBox::Ok: + m_config.select_tab (1); QTimer::singleShot (0, this, SLOT (on_actionSettings_triggered ())); break;