little bugfix

This commit is contained in:
Yann Leboulanger 2005-06-12 21:22:54 +00:00
parent d549183d4e
commit 35adf028d4
1 changed files with 2 additions and 1 deletions

View File

@ -1588,7 +1588,8 @@ class ServiceRegistrationWindow:
table.attach(label, 0, 1, nbrow - 1, nbrow, 0, 0, 0, 0)
entry = gtk.Entry()
entry.set_activates_default(True)
entry.set_text(self.infos[name])
if self.infos[name]:
entry.set_text(self.infos[name])
if name == 'password':
entry.set_visibility(False)
table.attach(entry, 1, 2, nbrow - 1, nbrow, 0, 0, 0, 0)