From 8e9def08eb613dc8f599842892596bbced366c70 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sat, 10 Feb 2018 20:26:08 +0300 Subject: [PATCH] [app] One more place where currentPageChanged should be emitted --- app/src/BooksPageStack.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/BooksPageStack.cpp b/app/src/BooksPageStack.cpp index 1050a02..1d7c34c 100644 --- a/app/src/BooksPageStack.cpp +++ b/app/src/BooksPageStack.cpp @@ -1,6 +1,6 @@ /* * Copyright (C) 2016-2018 Jolla Ltd. - * Contact: Slava Monich + * Copyright (C) 2015-2018 Slava Monich * * You may use this file under the terms of the BSD license as follows: * @@ -290,6 +290,9 @@ void BooksPageStack::Private::pageChanged(int aIndex) BooksPageStack* model = parentModel(); QModelIndex modelIndex(model->createIndex(aIndex, 0)); Q_EMIT model->dataChanged(modelIndex, modelIndex, roles); + if (aIndex == iCurrentIndex) { + queueSignals(SignalCurrentPageChanged); + } } void BooksPageStack::Private::setStack(BooksPos::List aStack, int aStackPos)