Fix Stage, as ScriptAction isn't a function.
commitbe7bfd4431c5cd28e89df0aa0c609ab6f767673c
authorMichał Sawicz <michal.sawicz@canonical.com>
dateFri 28 Feb 2014, 17:36 (13 years ago)
parent003e3fb
qml/Components/Stage.qml+4−6
@@ -329,13 +329,11 @@ Showable {
329329
330330 ScriptAction {
331331 script: {
332− if (!stage.focusedApplicationWhenUsingScreenshots) {
333− // FIXME: only here to support case where application does
334− // not exist yet but is about to
335− return;
332+ // FIXME: only here to support case where application does
333+ // not exist yet but is about to
334+ if (stage.focusedApplicationWhenUsingScreenshots) {
335+ stage.__focusApplication(stage.focusedApplicationWhenUsingScreenshots);
336336 }
337−
338− stage.__focusApplication(stage.focusedApplicationWhenUsingScreenshots);
339337 }
340338 }
341339 }