Commit 2af5fc69 authored by Milian Wolff's avatar Milian Wolff
Browse files

fix crash when renewModel gets called without any model

BUG: 274902
parent 8d3f50a8
......@@ -124,7 +124,11 @@ GrepOutputView::GrepOutputView(QWidget* parent)
void GrepOutputView::replacementTextChanged(QString)
{
updateCheckable();
updateApplyState(model()->index(0, 0), model()->index(0, 0));
if (model()) {
// see https://bugs.kde.org/show_bug.cgi?id=274902 - renewModel can trigger a call here without an active model
updateApplyState(model()->index(0, 0), model()->index(0, 0));
}
}
GrepOutputView::~GrepOutputView()
......
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