From 3325aad1b258483790af2961372efde870317145 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sat, 20 Jan 2018 13:49:51 +0200 Subject: [PATCH] [app] Eliminated unnecessary QML object creation --- app/qml/BooksStorageView.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/qml/BooksStorageView.qml b/app/qml/BooksStorageView.qml index df2853b..f29177d 100644 --- a/app/qml/BooksStorageView.qml +++ b/app/qml/BooksStorageView.qml @@ -1,5 +1,5 @@ /* - Copyright (C) 2015-2016 Jolla Ltd. + Copyright (C) 2015-2018 Jolla Ltd. Contact: Slava Monich You may use this file under the terms of BSD license as follows: @@ -99,9 +99,7 @@ SilicaFlickable { onClicked: { if (!_settingsComponent) { _settingsComponent = Qt.createComponent("../settings/BooksSettings.qml") - if (_settingsComponent.status === Component.Ready) { - _settingsComponent.createObject(storageView) - } else { + if (_settingsComponent.status !== Component.Ready) { console.log(_settingsComponent.errorString()) } }