summaryrefslogtreecommitdiffstats
path: root/bin/gui/control.c
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2014-08-13 20:04:54 +0200
committerTimo Dritschler <timo.dritschler@kit.edu>2014-08-13 20:04:54 +0200
commit437b673ba0b49e5b7dbfc88fa5d0fb23fed1bd73 (patch)
treeec975eda7427097d288d5baea775ec20aebb103a /bin/gui/control.c
parentfa7e40e0f6b4c4669f17583d5194b05d5df9e742 (diff)
downloaduca-437b673ba0b49e5b7dbfc88fa5d0fb23fed1bd73.tar.gz
uca-437b673ba0b49e5b7dbfc88fa5d0fb23fed1bd73.tar.bz2
uca-437b673ba0b49e5b7dbfc88fa5d0fb23fed1bd73.tar.xz
uca-437b673ba0b49e5b7dbfc88fa5d0fb23fed1bd73.zip
Fixed a crash in camera gui when loading of a camera plugin fails
Diffstat (limited to 'bin/gui/control.c')
-rw-r--r--bin/gui/control.c7
1 files changed, 6 insertions, 1 deletions
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 ();
}