Ensure the resizing items aren't null (fix Coverity defect 121862).

This commit is contained in:
Teo Mrnjavac 2016-02-26 13:13:01 +01:00
parent a0ac9d9f07
commit 749a740ffa
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ struct PartitionSplitterItem
static PartitionSplitterItem null() { return { QString(), QColor(), false, 0, Normal }; }
bool isNull() const { return itemPath.isEmpty() && size == 0; }
bool isNull() const { return itemPath.isEmpty() && size == 0 && status == Normal; }
operator bool() const { return !isNull(); }
};