From c8f643d8e32dbcef2c656553b85945e1cea28852 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Mon, 26 Feb 2018 17:39:30 +0200 Subject: [PATCH] [app] Fixed compatibility with Sailfish OS < 2.1.0 Notification object didn't have the "icon" property until Sailfish OS 2.1.0. Its presense needs to be checked at run time. --- app/qml/BooksBookView.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/qml/BooksBookView.qml b/app/qml/BooksBookView.qml index 4fa3855..7ced02f 100644 --- a/app/qml/BooksBookView.qml +++ b/app/qml/BooksBookView.qml @@ -1,6 +1,6 @@ /* - Copyright (C) 2015-2017 Jolla Ltd. - Copyright (C) 2015-2017 Slava Monich + Copyright (C) 2015-2018 Jolla Ltd. + Copyright (C) 2015-2018 Slava Monich You may use this file under the terms of BSD license as follows: @@ -122,8 +122,12 @@ SilicaFlickable { //: Pop-up notification //% "Copied to clipboard" previewBody: qsTrId("harbour-books-book-view-copied_to_clipboard") - icon: "icon-s-clipboard" expireTimeout: 2000 + Component.onCompleted: { + if ("icon" in notification) { + notification.icon = "icon-s-clipboard" + } + } } SilicaListView {