only let a source be valid if there is an engine and the engine is valid
This commit is contained in:
parent
e2f4b4ecc2
commit
e3f18bded0
@ -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;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user