mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Qt5-specific: Fix crash after Ctrl+Tab when tabs navigation in MRU order is turned on in preferences
This commit is contained in:
parent
df92b38ea8
commit
1cef1a8733
|
@ -1739,7 +1739,10 @@ void MainWindow::ctrlReleased()
|
|||
{
|
||||
if (tabListMenu->actions().size() > 1)
|
||||
{
|
||||
ui.tabWidget->setCurrentIndex(tabListMenu->activeAction()->data().toInt());
|
||||
QAction *act = tabListMenu->activeAction();
|
||||
if( act == 0 )
|
||||
act = tabListMenu->actions().at( 1 );
|
||||
ui.tabWidget->setCurrentIndex( act->data().toInt() );
|
||||
}
|
||||
tabListMenu->hide();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue