From 63d64892d359427534c0881f698d949edf8a6395 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 4 Aug 2014 11:37:53 +0000 Subject: hotkey plugin: fixed clearing a key combination git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4400 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/hotkey/settingsdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/General/hotkey/settingsdialog.cpp b/src/plugins/General/hotkey/settingsdialog.cpp index af0e5bfd1..1e4e0193b 100644 --- a/src/plugins/General/hotkey/settingsdialog.cpp +++ b/src/plugins/General/hotkey/settingsdialog.cpp @@ -100,7 +100,7 @@ void SettingsDialog::on_tableWidget_itemDoubleClicked (QTableWidgetItem *item) dialog->exec() == QDialog::Accepted) { QString keyString = HotkeyManager::getKeyString(dialog->keySym (), dialog->nativeModifiers ()); - if(m_ui.tableWidget->findItems(keyString, Qt::MatchFixedString).isEmpty()) + if(keyString.isEmpty() || m_ui.tableWidget->findItems(keyString, Qt::MatchFixedString).isEmpty()) { item->setText(keyString); k->key = dialog->keySym (); -- cgit v1.2.3-13-gbd6f