diff options
| author | Tannin <devnull@localhost> | 2013-04-14 20:49:18 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-04-14 20:49:18 +0200 |
| commit | d161e1a0d61181185323fcb547d9e0651d546fb2 (patch) | |
| tree | 13b3ea7f71b03dd724a901688252bed16441afc3 /src/installationmanager.cpp | |
| parent | 1c9018e9fdba7878b0ef605f81529c20ef3bbffe (diff) | |
- if no version is known for a mod, the file date is used
- added files for the python proxy
Diffstat (limited to 'src/installationmanager.cpp')
| -rw-r--r-- | src/installationmanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index 63945150..16761f24 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -43,6 +43,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <Shellapi.h> #include <QPushButton> #include <QApplication> +#include <QDateTime> #include <QDirIterator> #include <boost/assign.hpp> @@ -720,6 +721,11 @@ bool InstallationManager::install(const QString &fileName, const QString &modsDi categoryID = CategoryFactory::instance().getCategoryID(categoryIndex); } + if (version.isEmpty()) { + QDateTime lastMod = fileInfo.lastModified(); + version = "d" + lastMod.toString("yyyy.M.d"); + } + { // guess the mod name and mod if from the file name if there was no meta information QString guessedModName; int guessedModID = modID; |
