diff --git a/buypeeb.py b/buypeeb.py index 5025ada..4939cf6 100755 --- a/buypeeb.py +++ b/buypeeb.py @@ -144,7 +144,7 @@ class BuypeebApp: entrybox.set_markup(text) entry = Gtk.Entry() - entry.set_text(prefilled) + entry.set_text(prefilled if prefilled is not None else "") entry.connect("activate", self.entryBoxResponse, entrybox, Gtk.ResponseType.OK) # allow for pressing enter instead of clicking OK entrybox.vbox.pack_end(entry, True, True, 0)