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:
parent
388d61203f
commit
96fdce66c1
@ -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()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user