[vlc-devel] commit: Revert "Qt: fix crashes possible in Hotkey settings." ( Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Apr 9 22:34:57 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Apr  9 20:57:06 2009 +0200| [32687bb26321322763558c5bf5e6e55344bbd9d1] | committer: Jean-Baptiste Kempf 

Revert "Qt: fix crashes possible in Hotkey settings."

This reverts commit f5d10727954d8b176a25a54e12e30832b599b509.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=32687bb26321322763558c5bf5e6e55344bbd9d1
---

 modules/gui/qt4/components/preferences_widgets.cpp |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index 96dcb92..ebd01d0 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -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() );
 }




More information about the vlc-devel mailing list