make all buttons insensitive on a category row in disco

This commit is contained in:
Yann Leboulanger 2006-01-07 13:54:30 +00:00
parent ae55c7149f
commit c515f56613
1 changed files with 3 additions and 0 deletions

View File

@ -1166,6 +1166,9 @@ class ToplevelAgentBrowser(AgentBrowser):
model, iter = self.window.services_treeview.get_selection().get_selected()
if not iter:
return
if not model[iter][0]:
# We're on a category row
return
if model[iter][4] != 0:
# We don't have the info (yet)
# It's either unknown or a transport, register button should be active