From f402191079bb8085d5fcbcbe8ca4a1199944fd75 Mon Sep 17 00:00:00 2001 From: Nick Logozzo Date: Tue, 21 Feb 2023 19:51:24 -0500 Subject: [PATCH] GNOME - Fix Crash When Adding Transaction --- NickvisionMoney.GNOME/Controls/GroupRow.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NickvisionMoney.GNOME/Controls/GroupRow.cs b/NickvisionMoney.GNOME/Controls/GroupRow.cs index 95944603a..6f1f1126f 100644 --- a/NickvisionMoney.GNOME/Controls/GroupRow.cs +++ b/NickvisionMoney.GNOME/Controls/GroupRow.cs @@ -124,7 +124,8 @@ public void UpdateRow(Group group, CultureInfo cultureAmount, CultureInfo cultur _lblAmount.AddCssClass(group.Balance >= 0 ? "denaro-income" : "denaro-expense"); if (group.Id == 0) { - _flowBox.Remove(_flowBox.GetChildAtIndex(1)); + _btnEdit.SetVisible(false); + _btnDelete.SetVisible(false); _flowBox.SetValign(Gtk.Align.Center); } }