diff --git a/src/plugins/qt4projectmanager/qt4nodes.cpp b/src/plugins/qt4projectmanager/qt4nodes.cpp index cac4c5914112202e040093555f2f4bbe124496fc..a566cf45d2351dab6803dd2f32e19cb1ef5961aa 100644 --- a/src/plugins/qt4projectmanager/qt4nodes.cpp +++ b/src/plugins/qt4projectmanager/qt4nodes.cpp @@ -696,12 +696,9 @@ void Qt4PriFileNode::save(ProFile *includeFile) void Qt4PriFileNode::clear() { // delete files && folders && projects - if (!fileNodes().isEmpty()) - removeFileNodes(fileNodes(), this); - if (!subProjectNodes().isEmpty()) - removeProjectNodes(subProjectNodes()); - if (!subFolderNodes().isEmpty()) - removeFolderNodes(subFolderNodes(), this); + removeFileNodes(fileNodes(), this); + removeProjectNodes(subProjectNodes()); + removeFolderNodes(subFolderNodes(), this); } QStringList Qt4PriFileNode::varNames(FileType type)