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
205}205}
206 206
207void WindowScriptingInterface::takeSnapshot(bool notify, float aspectRatio) {207void WindowScriptingInterface::takeSnapshot(bool notify, float aspectRatio) {
208 qApp->postLambdaEvent([notify, aspectRatio] {208 qApp->takeSnapshot(notify, aspectRatio);
209 qApp->takeSnapshot(notify, aspectRatio);
210 });
211}209}
212 210
213void WindowScriptingInterface::shareSnapshot(const QString& path) {211void WindowScriptingInterface::shareSnapshot(const QString& path) {
214 qApp->postLambdaEvent([path] {212 qApp->shareSnapshot(path);
215 qApp->shareSnapshot(path);
216 });
217}213}