summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKåre Särs <kare.sars@iki.fi>2016-11-11 19:54:59 (GMT)
committerKåre Särs <kare.sars@iki.fi>2016-11-11 19:54:59 (GMT)
commit8666aaab8eac67a2e377d80275e1c6a2860b5a6f (patch)
tree109032c74b64ff41391e8f858cea46053857ef0a
parent9ee94fdeeb028490ed355a0abf931d659734cb19 (diff)
Do not crash when looking-up a word without the project tool-view
BUG: 371976
-rw-r--r--addons/project/kateprojectpluginview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/project/kateprojectpluginview.cpp b/addons/project/kateprojectpluginview.cpp
index e21b075..8454969 100644
--- a/addons/project/kateprojectpluginview.cpp
+++ b/addons/project/kateprojectpluginview.cpp
@@ -494,6 +494,9 @@ QString KateProjectPluginView::currentWord() const
void KateProjectPluginView::slotProjectIndex()
{
+ if (!m_toolView) {
+ return;
+ }
const QString word = currentWord();
if (!word.isEmpty()) {
auto tabView = qobject_cast<QTabWidget*>(m_stackedProjectInfoViews->currentWidget());