fixed deleting shortcut from action

This commit is contained in:
Luis Ángel San Martín 2015-01-02 18:11:52 +01:00
parent da0e30ab24
commit 093d932104

View File

@ -112,6 +112,9 @@ void ShortcutsManager::registerActions(const QList<QAction *> &a)
bool ShortcutsManager::checkConflicts(const QKeySequence & shortcut, const QAction *dest)
{
if(shortcut.isEmpty())
return false;
foreach(QAction * action, actions)
{
if(action != dest) //if the same shortcut is setted there is no conflict