Commit 915789a6 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

lspclient: check for valid active mark model before using

parent e2ee037a
......@@ -777,7 +777,7 @@ public:
{
auto widget = m_tabWidget->widget(index);
if (widget != m_diagnosticsTree) {
if (widget == m_markModel->parent()) {
if (m_markModel && widget == m_markModel->parent()) {
clearAllLocationMarks();
}
delete widget;
......
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