[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasma-workspace] applets/digital-clock/package/contents/ui: Fix runtime warning on startup of digi
From: David Faure <faure () kde ! org>
Date: 2016-06-13 10:25:04
Message-ID: E1bCP3I-0006dR-VH () scm ! kde ! org
[Download RAW message or body]
Git commit 820f563cc7f63f43efad5de7d44028ff691666a8 by David Faure.
Committed on 13/06/2016 at 10:25.
Pushed by dfaure into branch 'master'.
Fix runtime warning on startup of digital-clock
Summary: org.kde.plasma.digitalclock/contents/ui/main.qml:51: TypeError: Ca=
nnot read property 'width' of null
Reviewers: mck182, hein
Reviewed By: hein
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D1840
M +4 -4 applets/digital-clock/package/contents/ui/main.qml
http://commits.kde.org/plasma-workspace/820f563cc7f63f43efad5de7d44028ff691=
666a8
diff --git a/applets/digital-clock/package/contents/ui/main.qml b/applets/d=
igital-clock/package/contents/ui/main.qml
index b62ee20..ca22e05 100644
--- a/applets/digital-clock/package/contents/ui/main.qml
+++ b/applets/digital-clock/package/contents/ui/main.qml
@@ -48,10 +48,10 @@ Item {
Plasmoid.toolTipItem: Loader {
id: tooltipLoader
=
- Layout.minimumWidth: item.width
- Layout.maximumWidth: item.width
- Layout.minimumHeight: item.height
- Layout.maximumHeight: item.height
+ Layout.minimumWidth: item ? item.width : 0
+ Layout.maximumWidth: item ? item.width : 0
+ Layout.minimumHeight: item ? item.height : 0
+ Layout.maximumHeight: item ? item.height : 0
=
source: "Tooltip.qml"
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic