diff options
| author | Tannin <devnull@localhost> | 2013-09-15 15:20:00 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-09-15 15:20:00 +0200 |
| commit | 98e5e57a845541acddf519a81957261f58008cb9 (patch) | |
| tree | ce3c8f9c5b7c4b48e46b5d825f49a752ad62d10d /src/nxmaccessmanager.cpp | |
| parent | dce78b62b839c17f41a0fcd2890ffc0005be7a3b (diff) | |
- added support for mod page plugins
- re-introduced the integrated browser
- added a plugin to download from the tes alliance page
- the download list now contains the file description
- nexus interface now stores cookies persistently to reduce number of required log-ins
Diffstat (limited to 'src/nxmaccessmanager.cpp')
| -rw-r--r-- | src/nxmaccessmanager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxmaccessmanager.cpp b/src/nxmaccessmanager.cpp index d83ffa61..30a8bb06 100644 --- a/src/nxmaccessmanager.cpp +++ b/src/nxmaccessmanager.cpp @@ -22,6 +22,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "report.h" #include "utility.h" #include "selfupdater.h" +#include "persistentcookiejar.h" #include <QMessageBox> #include <QPushButton> #include <QNetworkProxy> @@ -29,6 +30,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QNetworkCookie> #include <QNetworkCookieJar> #include <QCoreApplication> +#include <QDir> #include <gameinfo.h> #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) @@ -42,6 +44,8 @@ using namespace MOShared; NXMAccessManager::NXMAccessManager(QObject *parent) : QNetworkAccessManager(parent), m_LoginReply(NULL), m_ProgressDialog() { + setCookieJar(new PersistentCookieJar( + QDir::fromNativeSeparators(MOBase::ToQString(MOShared::GameInfo::instance().getCacheDir())) + "/nexus_cookies.dat", this)); } |
