diff --git a/src/core/partitionnode.cpp b/src/core/partitionnode.cpp index 03fe97a..8c9b5da 100644 --- a/src/core/partitionnode.cpp +++ b/src/core/partitionnode.cpp @@ -119,10 +119,7 @@ bool PartitionNode::remove(Partition* p) if (p == nullptr) return false; - if (children().removeOne(p)) - return true; - - return false; + return children().removeOne(p); } /** Deletes all children */