mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed deleting shortcut from action
This commit is contained in:
parent
da0e30ab24
commit
093d932104
@ -112,6 +112,9 @@ void ShortcutsManager::registerActions(const QList<QAction *> &a)
|
|||||||
|
|
||||||
bool ShortcutsManager::checkConflicts(const QKeySequence & shortcut, const QAction *dest)
|
bool ShortcutsManager::checkConflicts(const QKeySequence & shortcut, const QAction *dest)
|
||||||
{
|
{
|
||||||
|
if(shortcut.isEmpty())
|
||||||
|
return false;
|
||||||
|
|
||||||
foreach(QAction * action, actions)
|
foreach(QAction * action, actions)
|
||||||
{
|
{
|
||||||
if(action != dest) //if the same shortcut is setted there is no conflict
|
if(action != dest) //if the same shortcut is setted there is no conflict
|
||||||
|
Loading…
x
Reference in New Issue
Block a user