[swell-foop/arnaudb/wip/gtk4: 22/25] Fix warnings.



commit 840c708d9e8697cdb6b9756a902f00d3d734f52e
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun May 24 23:46:05 2020 +0200

    Fix warnings.

 src/game-view.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/game-view.vala b/src/game-view.vala
index 33a9803..d3bf264 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -511,7 +511,7 @@ private class TileView : Widget
         /* When the animination is done, hide the actor */
         tile_destroyed = true;
         can_target = false;
-        if (click_controller != null)
+        if (click_controller != null && ((!) click_controller).get_widget () != null)
             remove_controller ((!) click_controller);
         remove_css_class ("highlight");
         add_css_class ("removed");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]