[chronojump] Webcam preferences fix for systems with no camera
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Webcam preferences fix for systems with no camera
- Date: Mon, 29 Apr 2019 14:29:52 +0000 (UTC)
commit cf612580394e05bd218d51a3d5c2f6a6dbe879d1
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Apr 29 15:17:05 2019 +0200
Webcam preferences fix for systems with no camera
src/gui/preferences.cs | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 489e7f4a..092b3f54 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -600,6 +600,13 @@ public class PreferencesWindow
combo_camera = ComboBox.NewText ();
+ /*
+ * declare both because there is a return just here and if they are undeclred the method:
+ * on_button_accept_clicked () will fail
+ */
+ combo_camera_resolution = ComboBox.NewText ();
+ combo_camera_framerate = ComboBox.NewText ();
+
if(wd_list.Count() == 0) {
//devices = Util.StringToStringArray(Constants.CameraNotFound);
label_no_cameras.Text = wd_list.Error;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]