diff options
author | Robert Tari <robert@tari.in> | 2025-04-08 18:48:39 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2025-04-08 18:48:39 +0200 |
commit | 9153eef0511a125ce769049d8a000977a02698a6 (patch) | |
tree | b1f476c06bf6346c2ffb2173abcde59d6b78d715 | |
parent | 88c789a6df9005f9a42b4296d2497173e5ad5279 (diff) | |
download | arctica-greeter-9153eef0511a125ce769049d8a000977a02698a6.tar.gz arctica-greeter-9153eef0511a125ce769049d8a000977a02698a6.tar.bz2 arctica-greeter-9153eef0511a125ce769049d8a000977a02698a6.zip |
src/shutdown-dialog: Fix possible null warning
-rw-r--r-- | src/shutdown-dialog.vala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shutdown-dialog.vala b/src/shutdown-dialog.vala index d243188..ec565b9 100644 --- a/src/shutdown-dialog.vala +++ b/src/shutdown-dialog.vala @@ -2,7 +2,7 @@ * * Copyright (C) 2013 Canonical Ltd * Copyright (C) 2015,2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de> - * Copyright (C) 2023 Robert Tari + * Copyright (C) 2023-2025 Robert Tari * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as @@ -306,7 +306,8 @@ public class ShutdownDialog : Gtk.Fixed var focused = pWindow.get_focus (); if ((null != focused) && (focused is DialogButton)) { - (focused as DialogButton).clicked (); + DialogButton pButton = (DialogButton) focused; + pButton.clicked (); } --default_action_time_supplemental; |