kate: enable session management from KateApp constructor

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-10 03:44:11 +03:00
parent da21da4e5c
commit 4b7a502ef7
2 changed files with 1 additions and 1 deletions

View file

@ -54,6 +54,7 @@ KateApp::KateApp (KCmdLineArgs *args)
, m_args (args)
{
setQuitOnLastWindowClosed (false);
enableSessionManagement();
// application interface
m_application = new Kate::Application (this);

View file

@ -377,7 +377,6 @@ int main( int argc, char **argv )
KateApp app (args);
if (app.shouldExit()) return 0;
app.enableSessionManagement();
// execute ourself ;)
return app.exec();
}