Commit 49bc7068 authored by Christoph Cullmann's avatar Christoph Cullmann

move reset for konsole plugin to right place

parent 8f07fa73
...@@ -166,14 +166,11 @@ KateConsole::~KateConsole () ...@@ -166,14 +166,11 @@ KateConsole::~KateConsole ()
void KateConsole::loadConsoleIfNeeded() void KateConsole::loadConsoleIfNeeded()
{ {
setFocusProxy(nullptr);
if (m_part) return; if (m_part) return;
if (!window() || !parentWidget()) return; if (!window() || !parentWidget()) return;
if (!window() || !isVisibleTo(window())) return; if (!window() || !isVisibleTo(window())) return;
/** /**
* get konsole part factory * get konsole part factory
*/ */
...@@ -205,6 +202,7 @@ void KateConsole::slotDestroyed () ...@@ -205,6 +202,7 @@ void KateConsole::slotDestroyed ()
{ {
m_part = nullptr; m_part = nullptr;
m_currentPath.clear (); m_currentPath.clear ();
setFocusProxy(nullptr);
// hide the dockwidget // hide the dockwidget
if (parentWidget()) { if (parentWidget()) {
......
Markdown is supported
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