]> git.sesse.net Git - vlc/commitdiff
Qt4: correct fix for Hotkeys preferences.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 9 Apr 2009 20:39:36 +0000 (22:39 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 9 Apr 2009 20:39:36 +0000 (22:39 +0200)
modules/gui/qt4/components/preferences_widgets.cpp

index ebd01d00d446c807465d00006d64d976635ef4dd..47c61a7f2317091fde156f37050b1df969587fb0 100644 (file)
@@ -1293,6 +1293,7 @@ void KeySelectorControl::selectKey( QTreeWidgetItem *keyItem )
 
 void KeySelectorControl::setTheKey()
 {
+    if( !table->currentItem() ) return;
     table->currentItem()->setText( 1, shortcutValue->text() );
     table->currentItem()->setData( 1, Qt::UserRole, shortcutValue->getValue() );
 }