mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
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:
parent
7b8a86dca7
commit
e910277ebe
@ -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 ();}
|
||||
|
||||
|
@ -73,6 +73,7 @@ public:
|
||||
QWidget * parent = nullptr);
|
||||
~Configuration ();
|
||||
|
||||
void select_tab (int);
|
||||
int exec ();
|
||||
bool is_active () const;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user