Window: keyPressEvent: don't show empty shortcuts

This commit is contained in:
Albert S. 2020-10-10 22:25:15 +02:00
rodič 98cff50c41
revize adfb065358
1 změnil soubory, kde provedl 4 přidání a 1 odebrání

Zobrazit soubor

@ -381,7 +381,10 @@ void Window::keyPressEvent(QKeyEvent *event)
for(EntryPushButton *button : buttonsInGrid) for(EntryPushButton *button : buttonsInGrid)
{ {
button->showShortcut(); if(!button->getEntryConfig().key.isEmpty())
{
button->showShortcut();
}
} }
QKeySequence seq(event->key()); QKeySequence seq(event->key());