[chronojump] Webcam: Fixed preferences gui when no default resolution/framerate
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Webcam: Fixed preferences gui when no default resolution/framerate
- Date: Mon, 27 May 2019 04:09:22 +0000 (UTC)
commit b04c8e3e8fad33bbea7830c39db301c8851a1435
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon May 27 01:08:41 2019 -0300
Webcam: Fixed preferences gui when no default resolution/framerate
src/gui/preferences.cs | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index a945988e..514084fd 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -666,6 +666,9 @@ public class PreferencesWindow
resolutions.Add(Catalog.GetString("Custom")); //in SQL will be stored the values not "Custom"
text
UtilGtk.ComboUpdate(combo_camera_resolution, resolutions);
+ if(resolution == "") //(first time using this) give a value
+ resolution = "640x480";
+
bool found = false;
foreach(string str in resolutions)
if(str == resolution)
@@ -696,6 +699,9 @@ public class PreferencesWindow
framerates.Add(Catalog.GetString("Custom")); //in SQL will be stored the values not "Custom"
text
UtilGtk.ComboUpdate(combo_camera_framerate, framerates);
+ if(framerate == "") //(first time using this) give a value
+ framerate = "30";
+
found = false;
foreach(string str in framerates)
if(str == framerate)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]