aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-12-09 20:32:15 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:20 -0300
commit5e5009140ec778dd217ce254770ed25c755a906c (patch)
treeb2c9cc150ecd6475a30e41294f467847a7beb830 /abstractmetabuilder.cpp
parent933e955e6b67422e7fd70130d4d3e84f7ee471c8 (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.cpp2
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();