Commit 1dbebbab authored by Kevin Funk's avatar Kevin Funk

grewpview: Fix potential crash in "Find in Files"

BUG: 402617
FIXED-IN: 5.3.2
parent a3167ce6
......@@ -413,6 +413,8 @@ void GrepOutputView::expandAllItems()
void GrepOutputView::rowsRemoved()
{
Q_ASSERT(model());
updateButtonState(model()->rowCount() > 0);
}
......@@ -473,6 +475,10 @@ void GrepOutputView::modelSelectorContextMenu(const QPoint& pos)
void GrepOutputView::updateScrollArea()
{
if (!model()) {
return;
}
for (int col = 0; col < model()->columnCount(); ++col)
resultsTreeView->resizeColumnToContents(col);
}
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