From 123fb350ce72e89b7dc72adfa202aad44a9070a0 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 9 Nov 2012 13:13:22 -0500 Subject: [PATCH] screenshot: don't fire flash if we failed to take picture https://bugzilla.gnome.org/show_bug.cgi?id=688004 --- js/ui/shellDBus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 7a625af37..b4d896615 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -111,7 +111,7 @@ const GnomeShell = new Lang.Class({ }, _onScreenshotComplete: function(obj, result, area, flash, invocation) { - if (flash) { + if (flash && result) { let flashspot = new Flashspot.Flashspot(area); flashspot.fire(); }