only let a source be valid if there is an engine and the engine is valid

This commit is contained in:
Aaron Seigo 2011-07-15 13:18:21 +02:00
parent e2f4b4ecc2
commit e3f18bded0

View File

@ -55,7 +55,7 @@ public:
DataSource(QObject* parent=0);
Q_PROPERTY(bool valid READ valid)
bool valid() const {return m_dataEngine != 0;}
bool valid() const {return m_dataEngine && m_dataEngine->isValid();}
Q_PROPERTY(int interval READ interval WRITE setInterval NOTIFY intervalChanged)
int interval() const {return m_interval;}