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) , m_args (args)
{ {
setQuitOnLastWindowClosed (false); setQuitOnLastWindowClosed (false);
enableSessionManagement();
// application interface // application interface
m_application = new Kate::Application (this); m_application = new Kate::Application (this);

View file

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