summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Gimeno <pgkbu-4027@personal.formauri.es>2016-09-06 10:02:53 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2016-09-06 10:02:53 (GMT)
commite1d70b2f59f901b9576cd146df8545a314e1f583 (patch)
tree2bc965f3e3dc857258579b5246878407d3ebfe01
parent24160ce258882b3fc94eabd1ad96d8886217f283 (diff)
Kate sidebar does not appear with old sessions
BUG: 267618 enable plugin gui for existing windows on loadConfig guess there was some misunderstanding, sorry that we ignored that patch this long :/
-rw-r--r--kate/katepluginmanager.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/kate/katepluginmanager.cpp b/kate/katepluginmanager.cpp
index a7aeec2..d018374 100644
--- a/kate/katepluginmanager.cpp
+++ b/kate/katepluginmanager.cpp
@@ -77,11 +77,11 @@ void KatePluginManager::setupPluginList()
while (i.hasPrevious()) {
KatePluginInfo info;
info.metaData = i.previous();
-
+
// only load plugins once, even if found multiple times!
if (unique.contains(info.saveName()))
continue;
-
+
info.defaultLoad = defaultPlugins.contains(info.saveName());
info.load = false;
info.plugin = nullptr;
@@ -120,7 +120,11 @@ void KatePluginManager::loadConfig(KConfig *config)
*/
for (KatePluginList::iterator it = m_pluginList.begin(); it != m_pluginList.end(); ++it) {
if (it->load) {
+ /**
+ * load plugin + trigger update of GUI for already existing main windows
+ */
loadPlugin(&(*it));
+ enablePluginGUI(&(*it));
// restore config
if (auto interface = qobject_cast<KTextEditor::SessionConfigInterface *> (it->plugin)) {