diff options
| author | Thomas Tanner <trtanner@btinternet.com> | 2015-11-20 18:07:06 +0000 |
|---|---|---|
| committer | Thomas Tanner <trtanner@btinternet.com> | 2015-11-20 18:07:06 +0000 |
| commit | 49de6e8d2555234c5da132c5fc35287083fe7ef7 (patch) | |
| tree | 8214d4f1447c76e08a390e02944d5f6744725015 /src/organizerproxy.cpp | |
| parent | 9ac845779abeafa7031f49dbc6bf0143765b3cd9 (diff) | |
Get rid of `GameIfo::getOrganizerDirectory` and associated member variable
qApp->getProperty("dataPath") can be used instead (and is pretty much everywhere else) so it's unnecessary
Diffstat (limited to 'src/organizerproxy.cpp')
| -rw-r--r-- | src/organizerproxy.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/organizerproxy.cpp b/src/organizerproxy.cpp index 095cb0bb..9e85929f 100644 --- a/src/organizerproxy.cpp +++ b/src/organizerproxy.cpp @@ -1,7 +1,9 @@ #include "organizerproxy.h"
+
#include <gameinfo.h>
#include <appconfig.h>
+#include <QApplication>
using namespace MOBase;
using namespace MOShared;
@@ -40,7 +42,7 @@ QString OrganizerProxy::downloadsPath() const QString OrganizerProxy::overwritePath() const
{
- return QDir::fromNativeSeparators(ToQString(GameInfo::instance().getOrganizerDirectory()))
+ return QDir::fromNativeSeparators(qApp->property("dataPath").toString())
+ "/"
+ ToQString(AppConfig::overwritePath());
}
|
