1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Remove pinnedtabs.dat on startup, not when saving session

This commit is contained in:
David Rosca 2015-09-28 14:34:21 +02:00
parent 6d37ab5ce4
commit f28da4407f

View File

@ -305,6 +305,9 @@ MainApplication::MainApplication(int &argc, char** argv)
if (!m_restoreManager->isValid()) {
destroyRestoreManager();
}
// Pinned tabs are saved into session.dat, so remove the old saved pinned tabs
QFile::remove(DataPaths::currentProfilePath() + QL1S("/pinnedtabs.dat"));
}
}
@ -716,11 +719,7 @@ void MainApplication::saveSession()
int afterLaunch = Settings().value("Web-URL-Settings/afterLaunch", 3).toInt();
if (afterLaunch == 3) {
// Pinned tabs are saved into session.dat, so remove the old saved pinned tabs
QFile::remove(DataPaths::currentProfilePath() + QL1S("/pinnedtabs.dat"));
}
else {
if (afterLaunch != 3) {
// Pinned tabs are saved only for last window into pinnedtabs.dat
BrowserWindow* qupzilla_ = getWindow();
if (qupzilla_ && m_windows.count() == 1) {