diff options
author | Timo Dritschler <timo.dritschler@kit.edu> | 2014-08-13 20:04:54 +0200 |
---|---|---|
committer | Timo Dritschler <timo.dritschler@kit.edu> | 2014-08-13 20:04:54 +0200 |
commit | 437b673ba0b49e5b7dbfc88fa5d0fb23fed1bd73 (patch) | |
tree | ec975eda7427097d288d5baea775ec20aebb103a /bin/gui/control.c | |
parent | fa7e40e0f6b4c4669f17583d5194b05d5df9e742 (diff) | |
download | uca-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.c | 7 |
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 (); } |