make connection to connectedSourcesChanged queued

Changing to Qt::QueuedConnection delays setupData().
this makes the dataChanged() signal arrive to qml only when the full
batch of setData has been done.
this in turn doesn't let incomplete data arrive to the model, making an
incomplete role mapping.
should fix the QML version of Lionmail
CCMAIL:sebas@kde.org
This commit is contained in:
Marco Martin 2011-04-17 20:01:45 +02:00
parent 388d61203f
commit 96fdce66c1

View File

@ -40,7 +40,7 @@ DataSource::DataSource(QObject* parent)
connect(this, SIGNAL(engineChanged()),
this, SLOT(setupData()));
connect(this, SIGNAL(connectedSourcesChanged()),
this, SLOT(setupData()));
this, SLOT(setupData()), Qt::QueuedConnection);
connect(this, SIGNAL(intervalChanged()),
this, SLOT(setupData()));
}