commit 45fe4c3dc17e365ede591d15debe271a7b669671
parent c42363cd0b46814ba05bd33603e8f0fa0a644a82
Author: lash <dev@holbrook.no>
Date: Thu, 4 Sep 2025 22:27:21 +0100
Make entry edit work with last merge
Diffstat:
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/ungana/gui/event.py b/ungana/gui/event.py
@@ -160,8 +160,9 @@ class EventWindow(Gtk.Window):
self.entry_domain.set_text(domain)
v = ev.get('geo')
- self.entry_geo_lat.set_text(str(v.latitude))
- self.entry_geo_lon.set_text(str(v.longitude))
+ if v != None:
+ self.entry_geo_lat.set_text(str(v.latitude))
+ self.entry_geo_lon.set_text(str(v.longitude))
for v in ev.content_lines():
r = None
diff --git a/ungana/runnable/gui.py b/ungana/runnable/gui.py
@@ -7,5 +7,6 @@ logging.basicConfig(level=logging.DEBUG)
#gettext.install(gettext.translation("ungana", localedir="locale", languages=['es']))
-app = UnganaGui(application_id="org.defalsify.ungana", initial_calendar=sys.argv[1])
+#app = UnganaGui(application_id="org.defalsify.ungana", initial_calendar=sys.argv[1])
+app = UnganaGui(application_id="org.defalsify.ungana", initial_calendar=None)
app.run(sys.argv)