[PinnedTabs] Restore pinned tabs also when not restoring session

Closes #1239
remotes/origin/falkon
nowrep 12 years ago
parent e5246a0c74
commit 4133106988
  1. 8
      src/lib/app/browserwindow.cpp

@ -203,12 +203,20 @@ void BrowserWindow::postLaunch()
else if (afterLaunch == 3 && mApp->restoreManager()) { else if (afterLaunch == 3 && mApp->restoreManager()) {
addTab = !mApp->restoreStateSlot(this, mApp->restoreManager()->restoreData()); 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; break;
case Qz::BW_MacFirstWindow: case Qz::BW_MacFirstWindow:
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
QTimer::singleShot(0, this, SLOT(refreshStateOfAllActions())); QTimer::singleShot(0, this, SLOT(refreshStateOfAllActions()));
#endif #endif
m_tabWidget->restorePinnedTabs();
// fallthrough
case Qz::BW_NewWindow: case Qz::BW_NewWindow:
addTab = true; addTab = true;
break; break;

Loading…
Cancel
Save