[cheese/gnome-3-8] Avoid crash when recording a video with no camera
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/gnome-3-8] Avoid crash when recording a video with no camera
- Date: Fri, 19 Jul 2013 07:23:33 +0000 (UTC)
commit 3ed6df6eb0d1abf45e68efa87d11f1c2d73e75bd
Author: David King <amigadave amigadave com>
Date: Fri Jul 19 08:11:29 2013 +0100
Avoid crash when recording a video with no camera
Fixes bug 693070.
src/cheese-main.vala | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/cheese-main.vala b/src/cheese-main.vala
index ac5ba6f..4e47025 100644
--- a/src/cheese-main.vala
+++ b/src/cheese-main.vala
@@ -257,7 +257,13 @@ public class Cheese.Main : Gtk.Application
//error_layer.text = err.message;
//error_layer.show ();
- //toggle_camera_actions_sensitivities (false);
+ var shoot = this.lookup_action ("shoot") as SimpleAction;
+ var effects = this.lookup_action ("effects") as SimpleAction;
+ var mode = this.lookup_action ("mode") as SimpleAction;
+
+ shoot.set_enabled (false);
+ effects.set_enabled (false);
+ mode.set_enabled (false);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]