From 0e90b9d233eb3ae8276f6f8bfc4612c117544404 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 4 Dec 2013 19:54:28 +0100 Subject: - bugfix: changing nexus id directly via mod list did not cause the change to be saved --- src/modinfo.cpp | 7 +++++++ src/modinfo.h | 2 +- src/selfupdater.cpp | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modinfo.cpp b/src/modinfo.cpp index f436eba8..6569f897 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -541,6 +541,13 @@ bool ModInfoRegular::setName(const QString &name) void ModInfoRegular::setNotes(const QString ¬es) { m_Notes = notes; + m_MetaInfoChanged = true; +} + +void ModInfoRegular::setNexusID(int modID) +{ + m_NexusID = modID; + m_MetaInfoChanged = true; } void ModInfoRegular::setVersion(const VersionInfo &version) diff --git a/src/modinfo.h b/src/modinfo.h index 6de0275b..677d8a82 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -570,7 +570,7 @@ public: * * @param modID the nexus mod id **/ - void setNexusID(int modID) { m_NexusID = modID; } + void setNexusID(int modID); /** * @brief set the version of this mod diff --git a/src/selfupdater.cpp b/src/selfupdater.cpp index bdace814..2a9ca893 100644 --- a/src/selfupdater.cpp +++ b/src/selfupdater.cpp @@ -436,6 +436,7 @@ void SelfUpdater::nxmRequestFailed(int, QVariant, int requestID, const QString & QTimer::singleShot(60000, this, SLOT(testForUpdate())); --m_Attempts; } else { + qWarning("Failed to retrieve update information: %s", qPrintable(errorMessage)); MessageDialog::showMessage(tr("Failed to retrieve update information: %1").arg(errorMessage), m_Parent); } } -- cgit v1.3.1