Bug 519676 - Clicking Info button in the warning tab has no effect
Summary: Clicking Info button in the warning tab has no effect
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Weather widget (other bugs)
Version First Reported In: 6.6.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-05-02 12:50 UTC by postix
Modified: 2026-08-20 15:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.6.7
Sentry Crash Report:


Attachments
Screenshot (94.28 KB, image/png)
2026-05-02 12:50 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2026-05-02 12:50:22 UTC
Created attachment 191981 [details]
Screenshot

STEPS TO REPRODUCE
1.  Have a weather forecast with a warning
2.  Open the warning tab
3.  Click on the (I) button

OBSERVED RESULT
Nothing happens.

```
plasmashell[3461]: "Could not convert argument 0 from undefined to QUrl"
plasmashell[3461]:          "expression for onClicked@qrc:/qt/qml/plasma/applet/org/kde/plasma/weather/NoticesView.qml:64"
plasmashell[3461]: qrc:/qt/qml/plasma/applet/org/kde/plasma/weather/NoticesView.qml:64: TypeError: Passing incompatible arguments to C++ functions from JavaScript is not allowed.
```

is logged.

EXPECTED RESULT
?

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.25.0
Qt Version: 6.10.3
Kernel Version: 6.19.14-200.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 TraceyC 2026-06-12 19:05:10 UTC
I can reproduce this on Plasma built from git-master
Comment 2 Nate Graham 2026-08-19 19:44:16 UTC
So the problem is it wants to open a URL, but here there is none. I see in warnings.cpp that it's possible for this URL to be unset, so in this case we should hide the button too.

It looks like we're trying to with `visible: model.info !== ""`, but that fails because it's not an empty string, it's an empty QVariant, which works out to "undefined", which we're not checking for.
Comment 3 Bug Janitor Service 2026-08-19 19:53:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/1115
Comment 4 Nate Graham 2026-08-20 15:18:46 UTC
Git commit d13f1474a4c77c5ec77f3b2f1e689309878f397d by Nate Graham.
Committed on 20/08/2026 at 15:06.
Pushed by ngraham into branch 'master'.

applets/weather: properly hide info button when it won't work

It's checking for model.info being an empty string, but it's not a
string, it's a variant. An empty variant is undefined, so we have to
check for that too.
FIXED-IN: 6.6.7

M  +1    -1    applets/weather/qml/NoticesView.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/d13f1474a4c77c5ec77f3b2f1e689309878f397d
Comment 5 Nate Graham 2026-08-20 15:21:49 UTC
Git commit df019ab332390cee434aa756faf8624d9cc2d58c by Nate Graham.
Committed on 20/08/2026 at 15:21.
Pushed by ngraham into branch 'Plasma/6.7'.

applets/weather: properly hide info button when it won't work

It's checking for model.info being an empty string, but it's not a
string, it's a variant. An empty variant is undefined, so we have to
check for that too.
FIXED-IN: 6.6.7


(cherry picked from commit d13f1474a4c77c5ec77f3b2f1e689309878f397d)

Co-authored-by: Nate Graham <nate@kde.org>

M  +1    -1    applets/weather/qml/NoticesView.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/df019ab332390cee434aa756faf8624d9cc2d58c
Comment 6 Nate Graham 2026-08-20 15:21:55 UTC
Git commit cd226110a94eafa6510892db0cf712c28537e5c8 by Nate Graham.
Committed on 20/08/2026 at 15:21.
Pushed by ngraham into branch 'Plasma/6.6'.

applets/weather: properly hide info button when it won't work

It's checking for model.info being an empty string, but it's not a
string, it's a variant. An empty variant is undefined, so we have to
check for that too.
FIXED-IN: 6.6.7


(cherry picked from commit d13f1474a4c77c5ec77f3b2f1e689309878f397d)

Co-authored-by: Nate Graham <nate@kde.org>

M  +1    -1    applets/weather/qml/NoticesView.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/cd226110a94eafa6510892db0cf712c28537e5c8