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
791f4bbd
Commit
791f4bbd
authored
Sep 20, 2022
by
Christoph Cullmann
🍨
Browse files
there might be no active view at all
use active viewspace, should have the same effect
parent
feb1445f
Pipeline
#235007
passed with stage
in 6 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/katemainwindow.cpp
View file @
791f4bbd
...
...
@@ -169,14 +169,14 @@ KateMainWindow::KateMainWindow(KConfig *sconfig, const QString &sgroup)
// Hence, we have to take care of the menu bar here
toggleShowMenuBar
(
false
);
// in all cases: avoid that arbitrary plugin toolviews get focus, like terminal, bug 412227
// we need to delay this a bit due to lazy view creation (and lazy e.g. terminal widget creation)
QTimer
::
singleShot
(
0
,
m_viewManager
->
activeView
(),
SLOT
(
setFocus
()));
// kwrite doesn't want sidebars, we have no plugins
if
(
KateApp
::
isKWrite
())
{
setSidebarsVisibleInternal
(
false
,
true
);
}
// in all cases: avoid that arbitrary plugin toolviews get focus, like terminal, bug 412227
// we need to delay this a bit due to lazy view creation (and lazy e.g. terminal widget creation)
QTimer
::
singleShot
(
0
,
m_viewManager
->
activeViewSpace
(),
SLOT
(
setFocus
()));
}
KateMainWindow
::~
KateMainWindow
()
...
...
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