summaryrefslogtreecommitdiff
path: root/plugins/gtkui/plcommon.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gtkui/plcommon.c')
-rw-r--r--plugins/gtkui/plcommon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/gtkui/plcommon.c b/plugins/gtkui/plcommon.c
index 1f7b65d2..9e3e3cdc 100644
--- a/plugins/gtkui/plcommon.c
+++ b/plugins/gtkui/plcommon.c
@@ -769,9 +769,8 @@ void
on_pin_groups_active (GtkMenuItem *menuitem,
gpointer user_data)
{
- gboolean act = gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menuitem));
int old_val = deadbeef->conf_get_int ("playlist.pin.groups", 0);
- deadbeef->conf_set_int ("playlist.pin.groups", 1-old_val);
+ deadbeef->conf_set_int ("playlist.pin.groups", old_val ? 0 : 1);
deadbeef->sendmessage (DB_EV_CONFIGCHANGED, 0, 0, 0);
gtk_check_menu_item_toggled(GTK_CHECK_MENU_ITEM(menuitem));
ddb_playlist_t *plt = deadbeef->plt_get_curr ();