Commit dad0ff2f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt4: correct fix for Hotkeys preferences.

parent 02fc220d
...@@ -1293,6 +1293,7 @@ void KeySelectorControl::selectKey( QTreeWidgetItem *keyItem ) ...@@ -1293,6 +1293,7 @@ void KeySelectorControl::selectKey( QTreeWidgetItem *keyItem )
void KeySelectorControl::setTheKey() void KeySelectorControl::setTheKey()
{ {
if( !table->currentItem() ) return;
table->currentItem()->setText( 1, shortcutValue->text() ); table->currentItem()->setText( 1, shortcutValue->text() );
table->currentItem()->setData( 1, Qt::UserRole, shortcutValue->getValue() ); table->currentItem()->setData( 1, Qt::UserRole, shortcutValue->getValue() );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment