comparison src/xmms-sid.c @ 860:852fe7009876

Prevent subsong control from opening when paused.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 09 Nov 2012 00:14:20 +0200
parents 2663b1ac9ce6
children 9052d9096c59
comparison
equal deleted inserted replaced
859:f535c1e274e8 860:852fe7009876
796 { 796 {
797 GtkWidget *frame25, *hbox15, *subctrl_prev, *subctrl_current, *subctrl_next; 797 GtkWidget *frame25, *hbox15, *subctrl_prev, *subctrl_current, *subctrl_next;
798 798
799 XS_MUTEX_LOCK(xs_subctrl); 799 XS_MUTEX_LOCK(xs_subctrl);
800 800
801 if (!xs_status.tuneInfo || !xs_status.playing || 801 if (xs_status.paused || !xs_status.tuneInfo || !xs_status.playing ||
802 xs_subctrl || xs_status.tuneInfo->nsubTunes <= 1) 802 xs_subctrl || xs_status.tuneInfo->nsubTunes <= 1)
803 goto out; 803 goto out;
804 804
805 /* Create the pop-up window */ 805 /* Create the pop-up window */
806 xs_subctrl = gtk_window_new(GTK_WINDOW_DIALOG); 806 xs_subctrl = gtk_window_new(GTK_WINDOW_DIALOG);