summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2013-09-03 17:53:13 +0100
committerDavid King <amigadave@amigadave.com>2013-09-16 21:45:20 +0100
commit7ab9209f06b89f6f830169f1f3e4a2afda2c44aa (patch)
tree5fd7f8690aaea7af0095a316455ee2eafd367c77
parentf6b6a7c1db07c9a4d2e7547129864b59a952f50e (diff)
Disable the preferences action while shooting
Changing the resolution or camera device while recording can lead to a crash, so avoid the problem by disabling the preferences action whenever the mode change actions are disabled. Fixes bug 670782.
-rw-r--r--src/cheese-window.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index a406288..4585a66 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -381,6 +381,8 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
mode.set_enabled (true);
var effects = this.application.lookup_action ("effects") as SimpleAction;
effects.set_enabled (true);
+ var preferences = this.application.lookup_action ("preferences") as SimpleAction;
+ preferences.set_enabled (true);
}
/**
@@ -392,6 +394,8 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
mode.set_enabled (false);
var effects = this.application.lookup_action ("effects") as SimpleAction;
effects.set_enabled (false);
+ var preferences = this.application.lookup_action ("preferences") as SimpleAction;
+ preferences.set_enabled (false);
}
/**