mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
WebTab: Fix pinning tabs that are not yet restored
This commit is contained in:
parent
9fd7c271e4
commit
1a87d443c0
|
@ -304,12 +304,12 @@ MainApplication::MainApplication(int &argc, char** argv)
|
|||
m_restoreManager = new RestoreManager();
|
||||
if (!m_restoreManager->isValid()) {
|
||||
destroyRestoreManager();
|
||||
}
|
||||
|
||||
} else {
|
||||
// Pinned tabs are saved into session.dat, so remove the old saved pinned tabs
|
||||
QFile::remove(DataPaths::currentProfilePath() + QL1S("/pinnedtabs.dat"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QTimer::singleShot(0, this, SLOT(postLaunch()));
|
||||
}
|
||||
|
|
|
@ -287,7 +287,9 @@ void WebTab::restoreTab(const WebTab::SavedTab &tab)
|
|||
{
|
||||
Q_ASSERT(m_tabBar);
|
||||
|
||||
if (!tab.isPinned && qzSettings->loadTabsOnActivation) {
|
||||
m_isPinned = tab.isPinned;
|
||||
|
||||
if (!m_isPinned && qzSettings->loadTabsOnActivation) {
|
||||
m_savedTab = tab;
|
||||
int index = tabIndex();
|
||||
|
||||
|
@ -322,7 +324,6 @@ void WebTab::p_restoreTab(const QUrl &url, const QByteArray &history)
|
|||
void WebTab::p_restoreTab(const WebTab::SavedTab &tab)
|
||||
{
|
||||
p_restoreTab(tab.url, tab.history);
|
||||
m_isPinned = tab.isPinned;
|
||||
}
|
||||
|
||||
QPixmap WebTab::renderTabPreview()
|
||||
|
|
Loading…
Reference in New Issue
Block a user