Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Konqueror
Commits
832d91b3
Commit
832d91b3
authored
Nov 06, 2022
by
Stefano Crocco
Browse files
Ensure that a session manager is created even if there are now windows
(cherry picked from commit
c27de8b6
)
parent
75d3c02a
Pipeline
#264863
canceled with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/konqapplication.cpp
View file @
832d91b3
...
...
@@ -186,6 +186,9 @@ int KonquerorApplication::startFirstInstance()
QString
programName
=
QApplication
::
applicationFilePath
();
//Ensure a session manager is created
KonqSessionManager
::
self
();
const
int
ret
=
exec
();
bool
alwaysPreload
=
KonqSettings
::
alwaysHavePreloaded
();
...
...
src/konqmainwindow.cpp
View file @
832d91b3
...
...
@@ -303,7 +303,6 @@ KonqMainWindow::KonqMainWindow(const QUrl &initialURL)
//qCDebug(KONQUEROR_LOG) << this << "created";
KonqSessionManager
::
self
();
m_fullyConstructed
=
true
;
}
...
...
src/konqsessionmanager.cpp
View file @
832d91b3
...
...
@@ -363,8 +363,7 @@ KonqSessionManager::KonqSessionManager()
const
int
interval
=
KonqSettings
::
autoSaveInterval
();
if
(
interval
>
0
)
{
m_autoSaveTimer
.
setInterval
(
interval
*
1000
);
connect
(
&
m_autoSaveTimer
,
SIGNAL
(
timeout
()),
this
,
SLOT
(
autoSaveSession
()));
connect
(
&
m_autoSaveTimer
,
&
QTimer
::
timeout
,
this
,
&
KonqSessionManager
::
autoSaveSession
);
}
enableAutosave
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment