From bfe47e01bbac74782fed48a3d265a2ee4ae9c7b0 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 4 Dec 2014 08:59:05 +0100 Subject: Fix UI loading logic one more time ... --- bin/gui/control.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/gui/control.c b/bin/gui/control.c index 95f7525..bc1931b 100644 --- a/bin/gui/control.c +++ b/bin/gui/control.c @@ -1366,11 +1366,11 @@ main (int argc, char *argv[]) g_warning ("Cannot load UI: `%s'. Trying in current working directory.", error->message); g_error_free (error); error = NULL; - } - if (!gtk_builder_add_from_file (builder, "control.glade", &error)) { - g_warning ("Cannot load UI: `%s'.", error->message); - return 1; + if (!gtk_builder_add_from_file (builder, "control.glade", &error)) { + g_warning ("Cannot load UI: `%s'.", error->message); + return 1; + } } plugin_manager = uca_plugin_manager_new (); -- cgit v1.2.3