From a8cf650e7329e4cf2793c773c409899fc4ff3cd0 Mon Sep 17 00:00:00 2001 From: dt <qtc-committer@nokia.com> Date: Thu, 23 Apr 2009 16:03:57 +0200 Subject: [PATCH] Fixes a crash reported on irc With splitted views move splitters, sometimes it crashes. --- src/plugins/coreplugin/editormanager/editormanager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index ee0c58e0a4c..ff16068c7f6 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -1657,7 +1657,9 @@ void EditorManager::showEditorInfoBar(const QString &kind, void EditorManager::hideEditorInfoBar(const QString &kind) { - currentEditorView()->hideEditorInfoBar(kind); + Core::Internal::EditorView *cev = currentEditorView(); + if (cev) + cev->hideEditorInfoBar(kind); } void EditorManager::showEditorStatusBar(const QString &kind, -- GitLab