~mcfletch/eric/update-to-4.5.13

« back to all changes in this revision

Viewing changes to eric/Preferences/ShortcutsDialog.py

Tags: 4.5.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
2
 
3
 
# Copyright (c) 2003 - 2011 Detlev Offenbach <detlev@die-offenbachs.de>
 
3
# Copyright (c) 2003 - 2012 Detlev Offenbach <detlev@die-offenbachs.de>
4
4
#
5
5
 
6
6
"""
362
362
            for act in actions:
363
363
                if txt == act.objectName():
364
364
                    act.setShortcut(QKeySequence(itm.text(1)))
365
 
                    act.setAlternateShortcut(QKeySequence(itm.text(2)))
 
365
                    act.setAlternateShortcut(QKeySequence(itm.text(2)), removeEmpty=True)
366
366
                    break
367
367
        
368
368
    def on_buttonBox_accepted(self):