Qt4: preferences, fix Global hotkeys display
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 7 May 2009 12:42:40 +0000 (14:42 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 7 May 2009 12:44:03 +0000 (14:44 +0200)
modules/gui/qt4/components/preferences_widgets.cpp

index 1fe3651..0536932 100644 (file)
@@ -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);