summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-04 16:16:34 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-03-07 11:03:45 +0000
commitd579c1c8aef5b497801d0484461182ed04fe4aa0 (patch)
treeac90a9101d52dd8283db0c389c3ba3bb68feef0c
parent735b9de01d301c738acc7a0b26d5703d998941fb (diff)
QQuickContainer: cleanup superfluous q-variablev5.7.0-alpha1
It's already declared in the beginning of the method. Change-Id: Ica59dc521ba852748f9d2c91286532ee88bc6d4c Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
-rw-r--r--src/templates/qquickcontainer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/templates/qquickcontainer.cpp b/src/templates/qquickcontainer.cpp
index 12b330f6..fc754fbf 100644
--- a/src/templates/qquickcontainer.cpp
+++ b/src/templates/qquickcontainer.cpp
@@ -111,10 +111,8 @@ void QQuickContainerPrivate::insertItem(int index, QQuickItem *item)
q->itemAdded(index, item);
- if (contentModel->count() == 1 && currentIndex == -1) {
- Q_Q(QQuickContainer);
+ if (contentModel->count() == 1 && currentIndex == -1)
q->setCurrentIndex(index);
- }
updatingCurrent = false;
}