aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2014-08-04 11:37:53 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2014-08-04 11:37:53 +0000
commit63d64892d359427534c0881f698d949edf8a6395 (patch)
tree05d07cb4ebf81a70d7dd159f1bfee9c3353335f0
parent12dadb074a68659725a7d7e9ced93f0c70b4b480 (diff)
downloadqmmp-63d64892d359427534c0881f698d949edf8a6395.tar.gz
qmmp-63d64892d359427534c0881f698d949edf8a6395.tar.bz2
qmmp-63d64892d359427534c0881f698d949edf8a6395.zip
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
-rw-r--r--src/plugins/General/hotkey/settingsdialog.cpp2
1 files changed, 1 insertions, 1 deletions
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 ();