~jean-baptiste-lab/+junk/wdtv_info

« back to all changes in this revision

Viewing changes to src/wdtv_gui.vala

  • Committer: Jean-Baptiste Lab
  • Date: 2011-04-12 14:11:17 UTC
  • Revision ID: jeanbaptiste.lab@gmail.com-20110412141117-1i276tr1wdt7abwr
Set default movie

Show diffs side-by-side

added added

removed removed

Lines of Context:
311
311
                        }
312
312
                        if (movies.size > 0)
313
313
                        {
314
 
                                current_movie.set_active(index);
 
314
                                if (-1 != index)
 
315
                                {
 
316
                                        current_movie.set_active(index);
 
317
                                }
 
318
                                else
 
319
                                {
 
320
                                        current_movie.set_active(0);
 
321
                                }
315
322
                        }
316
323
                }
317
324
                return true;