From e3f18bded0e2fa441924a2ee4642951b4d06bd65 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 15 Jul 2011 13:18:21 +0200 Subject: [PATCH] only let a source be valid if there is an engine and the engine is valid --- declarativeimports/core/datasource_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/declarativeimports/core/datasource_p.h b/declarativeimports/core/datasource_p.h index edf9a9062..1004da049 100644 --- a/declarativeimports/core/datasource_p.h +++ b/declarativeimports/core/datasource_p.h @@ -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;}