Skip to content

Commit f6dbc84

Browse files
committed
getErrorPathItem
1 parent 3d01cc4 commit f6dbc84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gui/resultitem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ResultItem : public QStandardItem
3333
bool hidden{};
3434

3535
QErrorPathItem getErrorPathItem() const {
36-
if (!errorItem || errorItem->errorPath.isEmpty())
36+
if (!errorItem || mErrorPathIndex < 0 || mErrorPathIndex >= errorItem->errorPath.size())
3737
return {};
3838
return errorItem->errorPath[mErrorPathIndex];
3939
}

0 commit comments

Comments
 (0)