make sure the layout timer isn't running

when maintintem changes

Change-Id: I59d1930caf2686e1fa9a1fb0510e15630898d99f
This commit is contained in:
Marco Martin 2014-10-03 19:10:31 +02:00
parent 1015d51997
commit 2a582e6b4a

View File

@ -632,6 +632,7 @@ QQuickItem *Dialog::mainItem() const
void Dialog::setMainItem(QQuickItem *mainItem)
{
if (d->mainItem != mainItem) {
d->hintsCommitTimer.stop();
if (d->mainItem) {
d->mainItem->setParentItem(0);
d->mainItem->setParent(parent());