Review Request 129528: Fix "Unable to assign [undefined] to int" log

David Edmundson david at davidedmundson.co.uk
Tue Nov 22 11:05:39 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/129528/#review101053
-----------------------------------------------------------



Well found.
Thanks for looking into it.


lookandfeel/contents/components/Battery.qml (line 48)
<https://git.reviewboard.kde.org/r/129528/#comment67754>

    Given we don't actually care about the value used as long as it's an int as this will be hidden anyway, this can be just:
    
    percent: pmSource.data["Battery"]["Percent"] || 0
    
    without a function.


- David Edmundson


On Nov. 22, 2016, 10:50 a.m., Maximiliano Curia wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/129528/
> -----------------------------------------------------------
> 
> (Updated Nov. 22, 2016, 10:50 a.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> The sddm breeze theme battery icon is trying to access the battery
> percent. In a batteryless system it produces the syslog message:
> Nov 14 22:28:23 samd sddm-greeter[3210]: file:///usr/share/sddm/themes/breeze/components/Battery.qml:39:18: Unable to assign [undefined] to int
> 
> Based on https://gist.github.com/Zren/4e5709d842965227088f6e1d3fd42016
> 
> Debian-Bug: https://bugs.debian.org/844194
> 
> 
> Diffs
> -----
> 
>   lookandfeel/contents/components/Battery.qml c4a94ebb6e3ca2f7b46e768f2c9bde22c9d6bbdf 
> 
> Diff: https://git.reviewboard.kde.org/r/129528/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Maximiliano Curia
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161122/32e1473d/attachment.html>


More information about the Plasma-devel mailing list