mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
BrowserWindow: Add aboutToClose signal
This commit is contained in:
parent
05bb94adfe
commit
ae4d971d1a
|
@ -1508,6 +1508,8 @@ void BrowserWindow::closeEvent(QCloseEvent* event)
|
|||
}
|
||||
}
|
||||
|
||||
emit aboutToClose();
|
||||
|
||||
saveSettings();
|
||||
mApp->closedWindowsManager()->saveWindow(this);
|
||||
|
||||
|
|
|
@ -125,6 +125,7 @@ public:
|
|||
|
||||
signals:
|
||||
void startingCompleted();
|
||||
void aboutToClose();
|
||||
|
||||
public slots:
|
||||
void goHome();
|
||||
|
|
|
@ -690,6 +690,10 @@ void MainApplication::quitApplication()
|
|||
return;
|
||||
}
|
||||
|
||||
for (BrowserWindow *window : qAsConst(m_windows)) {
|
||||
emit window->aboutToClose();
|
||||
}
|
||||
|
||||
if (m_sessionManager && m_windows.count() > 0) {
|
||||
m_sessionManager->autoSaveLastSession();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user