History

move thread safety into Application from caller

howard-stearns committed 10 years ago

Commit d0b58d81 parent ba72dc62 files · +14 −14Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+2−6
@@ -205,13 +205,9 @@ void WindowScriptingInterface::copyToClipboard(const QString& text) { · 204 unmodified lines
205205 }
206206
207207 void WindowScriptingInterface::takeSnapshot(bool notify, float aspectRatio) {
208− qApp->postLambdaEvent([notify, aspectRatio] {
209− qApp->takeSnapshot(notify, aspectRatio);
210− });
208+ qApp->takeSnapshot(notify, aspectRatio);
211209 }
212210
213211 void WindowScriptingInterface::shareSnapshot(const QString& path) {
214− qApp->postLambdaEvent([path] {
215− qApp->shareSnapshot(path);
216− });
212+ qApp->shareSnapshot(path);
217213 }