[swell-foop/arnaudb/wip/gtk4: 24/30] Fix warnings.




commit be1832ab9460dc66f0f52920ba7721b01cdfb006
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]