summaryrefslogtreecommitdiff
path: root/plugins/gtkui/plcommon.c
diff options
context:
space:
mode:
authorGravatar Christian Boxdörfer <christian.boxdoerfer@posteo.de>2013-12-28 11:59:27 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-01-05 14:21:44 +0100
commita66c46305373f8e66655777298051a506b2e8cf0 (patch)
tree5e745461a8c1e1daa398173c1114f2cd44626ec5 /plugins/gtkui/plcommon.c
parent69a7ce0532bb934182abf147fa9829e2769a43f1 (diff)
gtkui: pin groups config wasn't applied on startup
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 ();