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
Utilities
Kate
Commits
1eeaf3db
Commit
1eeaf3db
authored
Sep 18, 2022
by
Christoph Cullmann
🍨
Committed by
Eric Armbruster
Sep 19, 2022
Browse files
ensure welcome view after session switching, too
guard versus double invocation of welcome view display, too
parent
3c4b80ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/kateviewmanager.cpp
View file @
1eeaf3db
...
...
@@ -1334,6 +1334,9 @@ void KateViewManager::restoreViewConfiguration(const KConfigGroup &config)
}
updateViewSpaceActions
();
// ensure we have the welcome view if no active view is there
showWelcomeView
();
}
QString
KateViewManager
::
saveSplitterConfig
(
KateSplitter
*
s
,
KConfigBase
*
configBase
,
const
QString
&
viewConfGrp
)
...
...
@@ -1522,7 +1525,9 @@ void KateViewManager::showWelcomeView()
{
// delay the creation, e.g. used on startup
QTimer
::
singleShot
(
0
,
this
,
[
this
]()
{
if
(
activeView
())
// we really want to show up only if nothing is in the current view space
// this guard versus double invocation of this function, too
if
(
activeViewSpace
()
&&
(
activeViewSpace
()
->
currentView
()
||
activeViewSpace
()
->
currentWidget
()))
return
;
auto
welcomeVeiw
=
new
WelcomeView
(
this
);
...
...
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