# HG changeset patch # User Matti Hamalainen # Date 1169834643 0 # Node ID 1775b3f16cd9f8de210a535eb4b8c404f918930d # Parent a3fdd2d6c0561a6c175fc5207934b51a3a381fc0 Move variables to better block. diff -r a3fdd2d6c056 -r 1775b3f16cd9 src/xs_fileinfo.c --- a/src/xs_fileinfo.c Fri Jan 26 16:36:01 2007 +0000 +++ b/src/xs_fileinfo.c Fri Jan 26 18:04:03 2007 +0000 @@ -138,14 +138,14 @@ void xs_fileinfo_update(void) { - gboolean isEnabled; - GtkAdjustment *tmpAdj; - XS_MUTEX_LOCK(xs_status); XS_MUTEX_LOCK(xs_fileinfowin); /* Check if control window exists, we are currently playing and have a tune */ if (xs_fileinfowin) { + gboolean isEnabled; + GtkAdjustment *tmpAdj; + if (xs_status.tuneInfo && xs_status.isPlaying && (xs_status.tuneInfo->nsubTunes > 1)) { tmpAdj = gtk_range_get_adjustment(GTK_RANGE(LUW("fileinfo_subctrl_adj")));