diff --git a/satellite/application.py b/satellite/application.py index f49e97d..2f51e29 100755 --- a/satellite/application.py +++ b/satellite/application.py @@ -65,6 +65,8 @@ class SatelliteApp(Gtk.Application): self.app_menu) self.menu_popover.set_position(Gtk.PositionType.BOTTOM) + self.source = None + self.infolabel.set_markup("" + "\n"*10 + "") self.dataframe = DataFrame() @@ -186,7 +188,8 @@ class SatelliteApp(Gtk.Application): """Called after main loop exits.""" print("Cleaning up...") self.gpx_write() - self.source.restore() + if self.source is not None: + self.source.restore() print("...done.") def sigint_handler(self):