mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 10:32:11 +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();
|
saveSettings();
|
||||||
mApp->closedWindowsManager()->saveWindow(this);
|
mApp->closedWindowsManager()->saveWindow(this);
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,7 @@ public:
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void startingCompleted();
|
void startingCompleted();
|
||||||
|
void aboutToClose();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void goHome();
|
void goHome();
|
||||||
|
|
|
@ -690,6 +690,10 @@ void MainApplication::quitApplication()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (BrowserWindow *window : qAsConst(m_windows)) {
|
||||||
|
emit window->aboutToClose();
|
||||||
|
}
|
||||||
|
|
||||||
if (m_sessionManager && m_windows.count() > 0) {
|
if (m_sessionManager && m_windows.count() > 0) {
|
||||||
m_sessionManager->autoSaveLastSession();
|
m_sessionManager->autoSaveLastSession();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user