]> git.sesse.net Git - vlc/commitdiff
Revert "Qt: fix crashes possible in Hotkey settings."
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 9 Apr 2009 18:57:06 +0000 (20:57 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 9 Apr 2009 19:56:54 +0000 (21:56 +0200)
This reverts commit f5d10727954d8b176a25a54e12e30832b599b509.

modules/gui/qt4/components/preferences_widgets.cpp

index 96dcb92c91af7a451ddd31d550960bc3fb57e185..ebd01d00d446c807465d00006d64d976635ef4dd 100644 (file)
@@ -1248,7 +1248,6 @@ void KeySelectorControl::finish()
 void KeySelectorControl::select1Key()
 {
     QTreeWidgetItem *keyItem = table->currentItem();
-    if( !keyItem ) return;
     shortcutValue->setText( keyItem->text( 1 ) );
     shortcutValue->setValue( keyItem->data( 1, Qt::UserRole ).toInt() );
 }
@@ -1294,7 +1293,6 @@ 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() );
 }