QmlJS: Fix plugin dumpers running all the time if dump fails.

Task-number: QTCREATORBUG-2733
Reviewed-by: Kai Koehne
This commit is contained in:
Christian Kamm
2010-10-14 14:44:50 +02:00
parent 87bb227605
commit ef96363560
3 changed files with 31 additions and 18 deletions

View File

@@ -358,6 +358,7 @@ LibraryInfo::LibraryInfo(const QmlDirParser &parser)
: _valid(true)
, _components(parser.components())
, _plugins(parser.plugins())
, _dumped(false)
{
}

View File

@@ -122,6 +122,7 @@ class QMLJS_EXPORT LibraryInfo
QList<QmlDirParser::Plugin> _plugins;
typedef QList<const Interpreter::FakeMetaObject *> FakeMetaObjectList;
FakeMetaObjectList _metaObjects;
bool _dumped;
public:
LibraryInfo();
@@ -142,6 +143,12 @@ public:
bool isValid() const
{ return _valid; }
bool isDumped() const
{ return _dumped; }
void setDumped(bool dumped)
{ _dumped = dumped; }
};
class QMLJS_EXPORT Snapshot