Commit 791f4bbd authored by Christoph Cullmann's avatar 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
......@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment