Wx: this should fix the [23027] commit for compilation. needs review.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 12 Nov 2007 07:50:16 +0000 (07:50 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 12 Nov 2007 07:50:16 +0000 (07:50 +0000)
modules/gui/wxwidgets/dialogs/playlist.cpp

index d62cf9e..24ad468 100644 (file)
@@ -1410,9 +1410,11 @@ wxMenu *Playlist::SDMenu()
                                                              &ppsz_longnames );
     char **ppsz_name = ppsz_names, **ppsz_longname = ppsz_longnames;
 
+    int i_number = 0;
+
     for( ; *ppsz_name; ppsz_name++, ppsz_longname++ )
     {
-        p_sd_menu->AppendCheckItem( FirstSD_Event + i_number ,
+        p_sd_menu->AppendCheckItem( FirstSD_Event + i_number++ ,
                                     wxU( *ppsz_longname ) );
 
         if( playlist_IsServicesDiscoveryLoaded( p_playlist, *ppsz_name ) )