]> git.sesse.net Git - vlc/commitdiff
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 d62cf9e8a3680c5d83bdd85f5781c4a2e9a3b99d..24ad468a19dcff3ab1f40c324dac39f961b4d7c1 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 ) )