From b576c4d3f8ef3766f6d7df329b7570100c00b1f0 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sat, 5 Feb 2022 23:52:37 +0000 Subject: [PATCH] qt/hotkeys: remove unnecessary check Every core hotkey item can be expected to have a shorttext label. --- modules/gui/qt/dialogs/preferences/preferences_widgets.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/gui/qt/dialogs/preferences/preferences_widgets.cpp b/modules/gui/qt/dialogs/preferences/preferences_widgets.cpp index b7a02e647c..af39c09d94 100644 --- a/modules/gui/qt/dialogs/preferences/preferences_widgets.cpp +++ b/modules/gui/qt/dialogs/preferences/preferences_widgets.cpp @@ -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)