[umbrello-devel] [umbrello] [Bug 335914] crash on importing qt 4 source
Ralf Habacker
ralf.habacker at freenet.de
Sat Jun 7 09:08:12 UTC 2014
https://bugs.kde.org/show_bug.cgi?id=335914
--- Comment #1 from Ralf Habacker <ralf.habacker at freenet.de> ---
A workaround I found is adding the line indicated with '+'.
void CppImport::feedTheModel(const QString& fileName)
{
if (ms_seenFiles.indexOf(fileName) != -1)
return;
QMap<QString, Dependence> deps = ms_driver->dependences(fileName);
if (! deps.empty()) {
QMap<QString, Dependence>::Iterator it;
for (it = deps.begin(); it != deps.end(); ++it) {
if (it.value().second == Dep_Global) // don't want these
continue;
QString includeFile = it.key();
if (includeFile.isEmpty()) {
uError() << fileName << ": " << it.value().first << " not
found";
continue;
}
uDebug() << fileName << ": " << includeFile << " => " <<
it.value().first;
if (ms_seenFiles.indexOf(includeFile) == -1)
+ ms_seenFiles.append(includeFile);
feedTheModel(includeFile);
}
}
ParsedFilePointer ast = ms_driver->translationUnit(fileName);
if (ast.isNull()) {
uError() << fileName << " not found in list of parsed files";
return;
}
ms_seenFiles.append(fileName);
CppTree2Uml modelFeeder(fileName, m_thread);
modelFeeder.parseTranslationUnit(*ast);
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list