From 9d88ca13b9b6a193dfb17a1ee3ea5e5cbed8a7e9 Mon Sep 17 00:00:00 2001 From: Thomas Tanner Date: Thu, 15 Oct 2015 13:34:01 +0100 Subject: Added functionality to use the web page link in a fomod to supply an optional web page. Also refactored modinfo into multiple files (as the actual types are opaque anyway) and cleaned up the headers a bit I also changed 'visit on nexus' from the menu not to open the downloads tab because it was a little confusing --- src/installationmanager.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/installationmanager.cpp') diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index a6af1a7f..3b1703d0 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -100,6 +100,10 @@ void InstallationManager::setParentWidget(QWidget *widget) } } +void InstallationManager::setURL(QString const &url) +{ + m_URL = url; +} void InstallationManager::queryPassword(LPSTR password) { @@ -581,6 +585,7 @@ bool InstallationManager::doInstall(GuessedValue &modName, int modID, } settingsFile.setValue("installationFile", m_CurrentFile); settingsFile.setValue("repository", repository); + settingsFile.setValue("url", m_URL); if (!merge) { // this does not clear the list we have in memory but the mod is going to have to be re-read anyway -- cgit v1.3.1