|
|
@ -375,7 +375,9 @@ class HoverActionDictionary(dict): |
|
|
|
|
|
|
|
def __setitem__(self, key, menuAction): |
|
|
|
"""key is a string of a single number 0-9""" |
|
|
|
assert key in "0 1 2 3 4 5 6 7 8 9".split() |
|
|
|
if not key in "0 1 2 3 4 5 6 7 8 9".split(): |
|
|
|
#No Numpad + and - |
|
|
|
return |
|
|
|
|
|
|
|
try: |
|
|
|
self[key].setShortcut(QtGui.QKeySequence()) #reset the action that previously had that shortcut |
|
|
|