History

Remove fix for old QT file path bug in OSX

Ryan Huffman committed 10 years ago

Commit 4e0ac2a1 parent 4b7a4e82 files · +0 −10Browse files

Showing the changes to libraries/script-engine/src/ScriptEngines.cpp (1 of 2 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngines.cpp+0−5
@@ -22,12 +22,7 @@ · 21 unmodified lines
22#define __STR1__(x) __STR2__(x)22#define __STR1__(x) __STR2__(x)
23#define __LOC__ __FILE__ "(" __STR1__(__LINE__) ") : Warning Msg: "23#define __LOC__ __FILE__ "(" __STR1__(__LINE__) ") : Warning Msg: "
24 24
25#ifndef __APPLE__
26static const QString DESKTOP_LOCATION = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);25static const QString DESKTOP_LOCATION = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
27#else
28// Temporary fix to Qt bug: http://stackoverflow.com/questions/16194475
29static const QString DESKTOP_LOCATION = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation).append("/script.js");
30#endif
31 26
32ScriptsModel& getScriptsModel() {27ScriptsModel& getScriptsModel() {
33 static ScriptsModel scriptsModel;28 static ScriptsModel scriptsModel;