1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-21 07:24:15 +02:00

qt/hotkeys: remove unnecessary check

Every core hotkey item can be expected to have a shorttext label.
This commit is contained in:
Lyndon Brown 2022-02-05 23:52:37 +00:00 committed by Hugo Beauzée-Luyssen
parent de622afa67
commit b576c4d3f8

View File

@ -1304,8 +1304,7 @@ void KeySelectorControl::finish()
}
QTreeWidgetItem *treeItem = new QTreeWidgetItem();
treeItem->setText( ACTION_COL, p_config_item->psz_text ?
qfut( p_config_item->psz_text ) : qfu("") );
treeItem->setText( ACTION_COL, qfut( p_config_item->psz_text ) );
treeItem->setData( ACTION_COL, Qt::UserRole,
QVariant( qfu( p_config_item->psz_name ) ) );
if (p_config_item->psz_longtext)