Commit 0b4fb960 authored by Anthony Fieroni's avatar Anthony Fieroni Committed by Christoph Cullmann

[projectplugin] Correct code index widget show

Differential Revision: https://phabricator.kde.org/D17870Signed-off-by: Anthony Fieroni's avatarAnthony Fieroni <bvbfan@abv.bg>
parent 586e87f5
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#include "kateprojectpluginview.h" #include "kateprojectpluginview.h"
#include "kateprojectinfoviewindex.h"
#include "fileutil.h" #include "fileutil.h"
#include <ktexteditor/editor.h> #include <ktexteditor/editor.h>
...@@ -502,7 +503,9 @@ void KateProjectPluginView::slotProjectIndex() ...@@ -502,7 +503,9 @@ void KateProjectPluginView::slotProjectIndex()
if (!word.isEmpty()) { if (!word.isEmpty()) {
auto tabView = qobject_cast<QTabWidget*>(m_stackedProjectInfoViews->currentWidget()); auto tabView = qobject_cast<QTabWidget*>(m_stackedProjectInfoViews->currentWidget());
if (tabView) { if (tabView) {
tabView->setCurrentIndex(1); if (auto codeIndex = tabView->findChild<KateProjectInfoViewIndex*>()) {
tabView->setCurrentWidget(codeIndex);
}
} }
m_mainWindow->showToolView(m_toolInfoView); m_mainWindow->showToolView(m_toolInfoView);
emit projectLookupWord(word); emit projectLookupWord(word);
......
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