diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-12-09 20:32:15 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:10:20 -0300 |
commit | 5e5009140ec778dd217ce254770ed25c755a906c (patch) | |
tree | b2c9cc150ecd6475a30e41294f467847a7beb830 /abstractmetabuilder.cpp | |
parent | 933e955e6b67422e7fd70130d4d3e84f7ee471c8 (diff) |
Don't report cyclic dependency when there not a single to form a graph.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r-- | abstractmetabuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp index 9d55c49d3..288afda35 100644 --- a/abstractmetabuilder.cpp +++ b/abstractmetabuilder.cpp @@ -2897,7 +2897,7 @@ AbstractMetaClassList AbstractMetaBuilder::classesTopologicalSorted(const Abstra AbstractMetaClassList result; unmappedResult = graph.topologicalSort(); - if (unmappedResult.isEmpty()) { + if (unmappedResult.isEmpty() && graph.nodeCount()) { QTemporaryFile tempFile; tempFile.setAutoRemove(false); tempFile.open(); |