mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 06:54:39 -04:00
fixed deleting shortcut from action
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user