diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-04-28 08:16:04 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-04-28 08:17:50 (GMT) |
commit | 0f0dbd09f7bf2ef9d69d1e559ace961d9b236d3b (patch) | |
tree | cfac297a168e6420e6e2f9007534ff59972d9641 /src/gui/itemviews | |
parent | 30087926ae942decd80632fbbb06eb389a343fac (diff) | |
download | Qt-0f0dbd09f7bf2ef9d69d1e559ace961d9b236d3b.zip Qt-0f0dbd09f7bf2ef9d69d1e559ace961d9b236d3b.tar.gz Qt-0f0dbd09f7bf2ef9d69d1e559ace961d9b236d3b.tar.bz2 |
When minimizing/restoring an item view it could jump to its currently
selected item
Task-number: 250446
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r-- | src/gui/itemviews/qabstractitemview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp index 55b3a03..975decc 100644 --- a/src/gui/itemviews/qabstractitemview.cpp +++ b/src/gui/itemviews/qabstractitemview.cpp @@ -1380,7 +1380,7 @@ bool QAbstractItemView::event(QEvent *event) d->executePostedLayout(); //make sure we set the layout properly break; case QEvent::Show: - { + if (d->delayedPendingLayout) { d->executePostedLayout(); //make sure we set the layout properly const QModelIndex current = currentIndex(); if (current.isValid() && (d->state == QAbstractItemView::EditingState || d->autoScroll)) |