Reload the open tabs when groups and dictionary order is changed

This commit is contained in:
Tvangeste 2013-06-10 23:39:40 +02:00
parent a2d14842fe
commit 57575fb4eb

View file

@ -1148,6 +1148,15 @@ void MainWindow::updateGroupList()
updateDictionaryBar();
qDebug() << "Reloading all the tabs...";
for( int i = 0; i < ui.tabWidget->count(); ++i )
{
ArticleView & view =
dynamic_cast< ArticleView & >( *( ui.tabWidget->widget( i ) ) );
view.reload();
}
connect( groupList, SIGNAL( currentIndexChanged( QString const & ) ),
this, SLOT( currentGroupChanged( QString const & ) ) );
}
@ -3049,16 +3058,6 @@ void MainWindow::on_rescanFiles_triggered()
// Reload suggestion list
QString word = translateLine->text();
translateInputChanged( word );
// Reload all tabs
for( int i = 0; i < ui.tabWidget->count(); ++i )
{
ArticleView & view =
dynamic_cast< ArticleView & >( *( ui.tabWidget->widget( i ) ) );
view.reload();
}
}
void MainWindow::on_alwaysOnTop_triggered( bool checked )