diff gui/interface.c @ 33874:e1bec41397bb

Don't let VCD track number and guiInfo.Track differ. Internally use guiInfo.Track for the track without offset now and externally speak of "titles" to the user. The titles are given minus the VCD metadata track. (The dynamic label variable $t isn't affected.) This also fixes some strange behavior when using the prev/next buttons when no VCD could be loaded. Rename MSGTR_VCDTrack MSGTR_Title to reflect the change.
author ib
date Wed, 10 Aug 2011 14:48:49 +0000
parents 8b0c78a85a8c
children 4789b8eed97e
line wrap: on
line diff
--- a/gui/interface.c	Tue Aug 09 21:32:09 2011 +0000
+++ b/gui/interface.c	Wed Aug 10 14:48:49 2011 +0000
@@ -446,7 +446,7 @@
         {
             char tmp[512];
 
-            sprintf(tmp, "vcd://%d", guiInfo.Track + 1);
+            sprintf(tmp, "vcd://%d", guiInfo.Track);
             setdup(&guiInfo.Filename, tmp);
         }
         break;