Author: andar
Revision: 5221
Log:
Prevent exception when clicking on the Connect button when no host is
selected
Diff:
Modified: trunk/deluge/ui/gtkui/connectionmanager.py
===================================================================
--- trunk/deluge/ui/gtkui/connectionmanager.py 2009-04-30 16:17:50 UTC (rev
5220)
+++ trunk/deluge/ui/gtkui/connectionmanager.py 2009-05-01 17:28:57 UTC (rev
5221)
@@ -380,6 +380,8 @@
def on_button_connect_clicked(self, widget=None):
model, row = self.hostlist.get_selection().get_selected()
+ if not row:
+ return
status = model[row][HOSTLIST_COL_STATUS]
if status == "Connected":
def on_disconnect(reason):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---