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:
parent
6d37ab5ce4
commit
f28da4407f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user