From f2b33d75cb147965306e075f0b921cbad6c04334 Mon Sep 17 00:00:00 2001 From: ZachHaber Date: Mon, 16 Jan 2017 19:34:02 -0600 Subject: Loot Button Re-enabled the button --- src/mainwindow.ui | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/mainwindow.ui b/src/mainwindow.ui index b464a384..e30a165d 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -732,9 +732,6 @@ p, li { white-space: pre-wrap; } Sort - - false - :/MO/gui/sort:/MO/gui/sort -- cgit v1.3.1 From 4149ce4cdb43fdf5c4ac6cd9cd317912fe40d683 Mon Sep 17 00:00:00 2001 From: ZachHaber Date: Tue, 17 Jan 2017 16:30:42 -0600 Subject: Fixing overwrite problems Changes the organizerproxy to pull from the settings rather than try and figure it out on its own. --- src/organizercore.cpp | 10 ++++++++++ src/organizercore.h | 2 ++ src/organizerproxy.cpp | 10 ++++++++-- src/organizerproxy.h | 1 + 4 files changed, 21 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/organizercore.cpp b/src/organizercore.cpp index 55d3f494..d9ed6ab6 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -703,6 +703,16 @@ QString OrganizerCore::downloadsPath() const return QDir::fromNativeSeparators(m_Settings.getDownloadDirectory()); } +QString OrganizerCore::overwritePath() const +{ + return QDir::fromNativeSeparators(m_Settings.getOverwriteDirectory()); +} + +QString OrganizerCore::basePath() const +{ + return QDir::fromNativeSeparators(m_Settings.getBaseDirectory()); +} + MOBase::VersionInfo OrganizerCore::appVersion() const { return m_Updater.getVersion(); diff --git a/src/organizercore.h b/src/organizercore.h index e994d9b1..297b94f6 100644 --- a/src/organizercore.h +++ b/src/organizercore.h @@ -165,6 +165,8 @@ public: QString profileName() const; QString profilePath() const; QString downloadsPath() const; + QString overwritePath() const; + QString basePath() const; MOBase::VersionInfo appVersion() const; MOBase::IModInterface *getMod(const QString &name) const; MOBase::IModInterface *createMod(MOBase::GuessedValue &name); diff --git a/src/organizerproxy.cpp b/src/organizerproxy.cpp index b6dbd242..cf2e29e3 100644 --- a/src/organizerproxy.cpp +++ b/src/organizerproxy.cpp @@ -37,9 +37,15 @@ QString OrganizerProxy::downloadsPath() const QString OrganizerProxy::overwritePath() const { - return QDir::fromNativeSeparators(qApp->property("dataPath").toString()) + /*return QDir::fromNativeSeparators(qApp->property("dataPath").toString()) + "/" - + ToQString(AppConfig::overwritePath()); + + ToQString(AppConfig::overwritePath());*/ + return m_Proxied->overwritePath(); +} + +QString OrganizerProxy::basePath() const +{ + return m_Proxied->basePath(); } VersionInfo OrganizerProxy::appVersion() const diff --git a/src/organizerproxy.h b/src/organizerproxy.h index 7d925482..7004db14 100644 --- a/src/organizerproxy.h +++ b/src/organizerproxy.h @@ -18,6 +18,7 @@ public: virtual QString profilePath() const; virtual QString downloadsPath() const; virtual QString overwritePath() const; + virtual QString basePath() const; virtual MOBase::VersionInfo appVersion() const; virtual MOBase::IModInterface *getMod(const QString &name) const; virtual MOBase::IModInterface *createMod(MOBase::GuessedValue &name); -- cgit v1.3.1 From 0da2060da415f7cf55a6b581f8b94d04be9a3316 Mon Sep 17 00:00:00 2001 From: ZachHaber Date: Tue, 17 Jan 2017 17:11:06 -0600 Subject: Revert "Loot Button" This reverts commit f2b33d75cb147965306e075f0b921cbad6c04334. --- src/mainwindow.ui | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/mainwindow.ui b/src/mainwindow.ui index e30a165d..b464a384 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -732,6 +732,9 @@ p, li { white-space: pre-wrap; } Sort + + false + :/MO/gui/sort:/MO/gui/sort -- cgit v1.3.1 From 45cc67da05c57f3088e2b17e4c588905fda6c43c Mon Sep 17 00:00:00 2001 From: ZachHaber Date: Tue, 17 Jan 2017 17:14:38 -0600 Subject: Re-enabled the boss button Properly this time =P --- src/mainwindow.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mainwindow.ui b/src/mainwindow.ui index b464a384..4b5467ed 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -733,7 +733,7 @@ p, li { white-space: pre-wrap; } Sort - false + true -- cgit v1.3.1