]> git.tuebingen.mpg.de Git - paraslash.git/commit
gui: Always initialize theme.
authorAndre Noll <maan@systemlinux.org>
Mon, 12 May 2014 15:51:49 +0000 (17:51 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 12 May 2014 15:59:14 +0000 (17:59 +0200)
commit815bff104d37c61f65bc776eaeeb77f8a1406a1a
tree4d0634b88bbef0088109785422a022789de3121b
parent821492dacaf35773acc59b45ef2b3c4f072581f4
gui: Always initialize theme.

parse_config_file_or_die() contains the following bug: If the
configuration file ~/.paraslash/gui.conf does not exist, the current
code not only skips the gengetopt config file parser (which is correct)
but also omits to call theme_init(), which is incorrect.

The bug was introduced recently in commit 18d37e (Unify config
file parsing). Fix it by moving the call to theme_init() to
the bottom of the function so that it is called if and only if
parse_config_file_or_die() succeeds.
gui.c