aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-19 10:18:49 -0200
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-11-19 14:45:54 -0300
commit8f8de4e763269b57c57eb4d5047139177d7fd1a8 (patch)
tree152a22e633433595a4ef1b79edb04cbf8ecc0857 /typesystem.cpp
parent890cf26e0a67f2fa2b2312c1a09a6ed9e9cb4294 (diff)
Do not exit with a assertion failure when the typesystem was not found.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'typesystem.cpp')
-rw-r--r--typesystem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/typesystem.cpp b/typesystem.cpp
index 87607130b..9ffdf502c 100644
--- a/typesystem.cpp
+++ b/typesystem.cpp
@@ -1696,7 +1696,10 @@ bool TypeDatabase::parseFile(const QString &filename, bool generate)
return m_parsedTypesystemFiles[filepath];
QFile file(filepath);
- Q_ASSERT_X(file.exists(), __FUNCTION__, ("Can't find " + filename).toLocal8Bit().data());
+ if (!file.exists()) {
+ ReportHandler::warning("Can't find " + filename+", typesystme paths: "+m_typesystemPaths.join(", "));
+ return false;
+ }
int count = m_entries.size();
bool ok = parseFile(&file, generate);