mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Reload the open tabs when groups and dictionary order is changed
This commit is contained in:
parent
a2d14842fe
commit
57575fb4eb
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue