mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
[PinnedTabs] Restore pinned tabs also when not restoring session
Closes #1239
This commit is contained in:
parent
e5246a0c74
commit
4133106988
@ -203,12 +203,20 @@ void BrowserWindow::postLaunch()
|
||||
else if (afterLaunch == 3 && mApp->restoreManager()) {
|
||||
addTab = !mApp->restoreStateSlot(this, mApp->restoreManager()->restoreData());
|
||||
}
|
||||
else {
|
||||
// Pinned tabs are restored in MainApplication::restoreStateSlot
|
||||
// Make sure they will be restored also when not restoring session
|
||||
m_tabWidget->restorePinnedTabs();
|
||||
}
|
||||
break;
|
||||
|
||||
case Qz::BW_MacFirstWindow:
|
||||
#ifdef Q_OS_MAC
|
||||
QTimer::singleShot(0, this, SLOT(refreshStateOfAllActions()));
|
||||
#endif
|
||||
m_tabWidget->restorePinnedTabs();
|
||||
// fallthrough
|
||||
|
||||
case Qz::BW_NewWindow:
|
||||
addTab = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user