[vlc-devel] commit: Qt4: correct fix for Hotkeys preferences. (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Apr 9 22:40:36 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Apr  9 22:39:36 2009 +0200| [dad0ff2f9508e62f6cf166dcc1e1072a9c3d95b9] | committer: Jean-Baptiste Kempf 

Qt4: correct fix for Hotkeys preferences.

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

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

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




More information about the vlc-devel mailing list