mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Fixed setting current tab after recovering crash.
It set currentIndex - 1 before.
This commit is contained in:
parent
359e1842a0
commit
3cdb4c26df
|
@ -970,7 +970,13 @@ bool MainApplication::restoreStateSlot(QupZilla* window, RestoreData recoveryDat
|
|||
newWin->restoreWindowState(recoveryData.takeFirst());
|
||||
}
|
||||
else {
|
||||
window->restoreWindowState(recoveryData.takeFirst());
|
||||
// QTabWidget::count() - count of tabs is not updated after closing
|
||||
// recovery tab ...
|
||||
int tabCount = window->tabWidget()->count();
|
||||
RestoreManager::WindowData data = recoveryData.takeFirst();
|
||||
data.currentTab += tabCount;
|
||||
|
||||
window->restoreWindowState(data);
|
||||
}
|
||||
|
||||
foreach(const RestoreManager::WindowData & data, recoveryData) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user