From 437b673ba0b49e5b7dbfc88fa5d0fb23fed1bd73 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Wed, 13 Aug 2014 20:04:54 +0200 Subject: Fixed a crash in camera gui when loading of a camera plugin fails --- bin/gui/control.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin/gui') diff --git a/bin/gui/control.c b/bin/gui/control.c index 1cb4dab..5f4416e 100644 --- a/bin/gui/control.c +++ b/bin/gui/control.c @@ -1117,7 +1117,12 @@ create_main_window (GtkBuilder *builder, const gchar* camera_name) camera = uca_plugin_manager_get_camera (plugin_manager, camera_name, &error, NULL); if ((camera == NULL) || (error != NULL)) { - g_error ("%s\n", error->message); + if (error) { + g_error ("%s\n", error->message); + } + else { + g_error ("Failed to load '%s' camera plugin for an unknown reason\n", camera_name); + } gtk_main_quit (); } -- cgit v1.2.3