[swell-foop/arnaudb/wip/gtk4: 52/55] Fix warnings.



commit 20289452f4f14e37a5164070e2e81545d205e46a
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]