diff --git a/src/ExportData.cpp b/src/ExportData.cpp index 3d6173a..813e71b 100644 --- a/src/ExportData.cpp +++ b/src/ExportData.cpp @@ -37,7 +37,7 @@ bool ExportData::rowShouldBeSkipped(const QAbstractItemView& view, int row) const auto* model = view.model(); const bool multiSelection = (QAbstractItemView::MultiSelection == view.selectionMode()); - QItemSelectionModel* selectionModel = view.selectionModel(); + const QItemSelectionModel* selectionModel = view.selectionModel(); return multiSelection && !selectionModel->isSelected(model->index(row, 0)); }