Fixed bug where the title of the 'Edit/Add Server' dialog was crazy

This commit is contained in:
Sumner Evans
2020-03-18 14:50:01 -06:00
parent 16042c68e4
commit c91cf3fab0
2 changed files with 2 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ class EditFormDialog(Gtk.Dialog):
def __init__(self, parent: Any, existing_object: Any = None):
editing = existing_object is not None
title = getattr(self, 'title', lambda: None)
title = getattr(self, 'title', None)
if not title:
if editing:
title = f'Edit {self.get_object_name(existing_object)}'