From 0f1271dd991ba9d67181114f75c80e14e8bfd596 Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 11 May 2015 21:40:35 +0200 Subject: - bugfix: moving a mod didn't properly update conflict highlighting --- src/mainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b5347d4d..135bdf8c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1854,6 +1854,14 @@ void MainWindow::modorder_changed() QModelIndex current = ui->modList->currentIndex(); if (current.isValid()) { ModInfo::Ptr modInfo = ModInfo::getByIndex(current.data(Qt::UserRole + 1).toInt()); + // clear caches on all mods conflicting with the moved mod + for (int i : modInfo->getModOverwrite()) { + ModInfo::getByIndex(i)->clearCaches(); + } + for (int i : modInfo->getModOverwritten()) { + ModInfo::getByIndex(i)->clearCaches(); + } + // update conflict check on the moved mod modInfo->doConflictCheck(); m_OrganizerCore.modList()->setOverwriteMarkers(modInfo->getModOverwrite(), modInfo->getModOverwritten()); if (m_ModListSortProxy != nullptr) { -- cgit v1.3.1