make all buttons insensitive on a category row in disco
This commit is contained in:
parent
ae55c7149f
commit
c515f56613
|
@ -1166,6 +1166,9 @@ class ToplevelAgentBrowser(AgentBrowser):
|
||||||
model, iter = self.window.services_treeview.get_selection().get_selected()
|
model, iter = self.window.services_treeview.get_selection().get_selected()
|
||||||
if not iter:
|
if not iter:
|
||||||
return
|
return
|
||||||
|
if not model[iter][0]:
|
||||||
|
# We're on a category row
|
||||||
|
return
|
||||||
if model[iter][4] != 0:
|
if model[iter][4] != 0:
|
||||||
# We don't have the info (yet)
|
# We don't have the info (yet)
|
||||||
# It's either unknown or a transport, register button should be active
|
# It's either unknown or a transport, register button should be active
|
||||||
|
|
Loading…
Reference in New Issue