From 351fc9ca9c0ca4b75011234f0203ce4c0bd3ef29 Mon Sep 17 00:00:00 2001 From: Tannin Date: Thu, 11 Jun 2015 18:54:59 +0200 Subject: fixed display of installation time for mods without nexus id --- src/modlist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modlist.cpp') diff --git a/src/modlist.cpp b/src/modlist.cpp index df006e30..419496c0 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -247,7 +247,7 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const } } else if (column == COL_INSTALLTIME) { // display installation time for mods that can be updated - if (modInfo->canBeUpdated()) { + if (modInfo->creationTime().isValid()) { return modInfo->creationTime(); } else { return QVariant(); @@ -660,6 +660,7 @@ void ModList::modInfoChanged(ModInfo::Ptr info) if (m_ChangeInfo.state != newState) { m_ModStateChanged(info->name(), newState); } + int row = ModInfo::getIndex(info->name()); info->testValid(); emit dataChanged(index(row, 0), index(row, columnCount())); -- cgit v1.3.1