From 9153eef0511a125ce769049d8a000977a02698a6 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Tue, 8 Apr 2025 18:48:39 +0200 Subject: src/shutdown-dialog: Fix possible null warning --- src/shutdown-dialog.vala | 5 +++-- 1 file 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 - * 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; -- cgit v1.2.3