VirtualBox

Changeset 73667 in vbox for trunk


Ignore:
Timestamp:
Aug 14, 2018 5:51:45 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: UIShortcutPool: Don't forget to update shortcut translation when changing shortcut, cause translatable tool-tip often includes shortcut.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIShortcutPool.cpp

    r71525 r73667  
    167167            /* Copy the sequence from the shortcut to the action: */
    168168            pAction->setShortcut(existingShortcut.sequence());
     169            pAction->retranslateUi();
    169170            /* Copy the default sequence from the action to the shortcut: */
    170171            existingShortcut.setDefaultSequence(pAction->defaultShortcut(pActionPool->type()));
     
    179180            newShortcut.setDefaultSequence(pAction->defaultShortcut(pActionPool->type()));
    180181            pAction->setShortcut(newShortcut.sequence());
     182            pAction->retranslateUi();
    181183            /* Copy the description from the action to the shortcut: */
    182184            newShortcut.setDescription(pAction->name());
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette