From 595b6a4f6c2a6f12fb2b3c83f4053942844ffa84 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jan 2013 17:52:51 +0100 Subject: ConfigFile: add enum ConfigOption Look up top-level config options by enum (= integer), not by name string. --- src/PlaylistState.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PlaylistState.cxx') diff --git a/src/PlaylistState.cxx b/src/PlaylistState.cxx index 212b5286..d03de0a1 100644 --- a/src/PlaylistState.cxx +++ b/src/PlaylistState.cxx @@ -180,7 +180,7 @@ playlist_state_restore(const char *line, TextFile &file, current = 0; if (state == PLAYER_STATE_PLAY && - config_get_bool("restore_paused", false)) + config_get_bool(CONF_RESTORE_PAUSED, false)) /* the user doesn't want MPD to auto-start playback after startup; fall back to "pause" */ -- cgit v1.2.3