summaryrefslogtreecommitdiffstats
path: root/setup/keyboardshortcut.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup/keyboardshortcut.py')
-rw-r--r--setup/keyboardshortcut.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup/keyboardshortcut.py b/setup/keyboardshortcut.py
index d794324..621f17b 100644
--- a/setup/keyboardshortcut.py
+++ b/setup/keyboardshortcut.py
@@ -179,6 +179,10 @@ class KeyboardShortcutSelection(gtk.VBox):
def __shortcut_view_cursor_changed_cb(self, treeview):
shortcut = self.__get_selected_shortcut()
self.__set_shortcut_to_buttons(shortcut)
+ if shortcut != None:
+ self.__delete_button.set_sensitive(True)
+ else:
+ self.__delete_button.set_sensitive(False)
def __modifier_button_toggled_cb(self, button, name):
shortcut = self.__get_shortcut_from_buttons()