[vlc-devel] commit: Qt4: preferences, fix Global hotkeys display (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu May 7 14:44:49 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu May  7 14:42:40 2009 +0200| [9ad959c08d68b27e2d8c83127c8ccbe727969832] | committer: Jean-Baptiste Kempf 

Qt4: preferences, fix Global hotkeys display

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

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

diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index 1fe3651..0536932 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -1223,12 +1223,14 @@ void KeySelectorControl::finish()
         {
             QList<QTreeWidgetItem *> list =
                 table->findItems( qtr( p_item->psz_text ), Qt::MatchExactly );
-            if( list.count() > 1 )
+            if( list.count() >= 1 )
             {
                 list[0]->setText( 2, VLCKeyToString( p_item->value.i ) );
                 list[0]->setData( 2, Qt::UserRole,
                                   QVariant( p_item->value.i ) );
             }
+            if( list.count() >= 2 )
+                msg_Dbg( p_this, "This is probably wrong, %s", p_item->psz_text );
         }
     }
     module_config_free (p_config);




More information about the vlc-devel mailing list