Commit 378d8b51 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix crash in compiler-explorer plugin

parent dfc407a8
Pipeline #185908 failed with stage
in 7 minutes and 41 seconds
......@@ -284,10 +284,14 @@ AsmView::AsmView(QWidget *parent)
setPalette(palette);
auto model = static_cast<AsmViewModel *>(this->model());
if (!model) {
qWarning() << Q_FUNC_INFO << "Unexpected null model!";
return;
}
model->setFont(Utils::editorFont());
};
updateColors();
QMetaObject::invokeMethod(this, updateColors, Qt::QueuedConnection);
connect(KTextEditor::Editor::instance(), &KTextEditor::Editor::configChanged, this, updateColors);
}
......
Supports Markdown
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