Commit 3617f5b4 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Close #2906

parent 1796b11a
......@@ -113,6 +113,11 @@ void ExtendedDialog::showTab( int i )
show();
}
int ExtendedDialog::currentTab()
{
return mainTabW->currentIndex();
}
void ExtendedDialog::changedItem( int i_status )
{
if( i_status != END_S ) return;
......
......@@ -46,6 +46,7 @@ public:
instance = NULL;
}
void showTab( int i );
int currentTab();
private:
ExtendedDialog( intf_thread_t * );
virtual ~ExtendedDialog();
......
......@@ -180,12 +180,20 @@ void DialogsProvider::prefsDialog()
void DialogsProvider::extendedDialog()
{
ExtendedDialog::getInstance( p_intf )->showTab( 0 );
if( !ExtendedDialog::getInstance( p_intf )->isVisible() || /* Hidden */
ExtendedDialog::getInstance( p_intf )->currentTab() != 0 ) /* wrong tab */
ExtendedDialog::getInstance( p_intf )->showTab( 0 );
else
ExtendedDialog::getInstance( p_intf )->hide();
}
void DialogsProvider::synchroDialog()
{
ExtendedDialog::getInstance( p_intf )->showTab( 2 );
if( !ExtendedDialog::getInstance( p_intf )->isVisible() || /* Hidden */
ExtendedDialog::getInstance( p_intf )->currentTab() != 2 ) /* wrong tab */
ExtendedDialog::getInstance( p_intf )->showTab( 2 );
else
ExtendedDialog::getInstance( p_intf )->hide();
}
void DialogsProvider::messagesDialog()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment