Force Settings tab to Radio tab when navigating there from a rig error message

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7947 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2017-07-26 01:38:37 +00:00
parent 7b8a86dca7
commit e910277ebe
3 changed files with 3 additions and 0 deletions

View File

@ -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 ();}

View File

@ -73,6 +73,7 @@ public:
QWidget * parent = nullptr);
~Configuration ();
void select_tab (int);
int exec ();
bool is_active () const;

View File

@ -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;