summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index d9d83231..48a09718 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1980,6 +1980,7 @@ void MainWindow::directory_refreshed()
refreshDataTree();
updateProblemsButton();
statusBar()->hide();
+ m_OrganizerCore.refreshESPList();
}
void MainWindow::modorder_changed()
@@ -2307,10 +2308,7 @@ void MainWindow::removeMod_clicked()
void MainWindow::modRemoved(const QString &fileName)
{
if (!fileName.isEmpty() && !QFileInfo(fileName).isAbsolute()) {
- int index = m_OrganizerCore.downloadManager()->indexByName(fileName);
- if (index >= 0) {
- m_OrganizerCore.downloadManager()->markUninstalled(index);
- }
+ m_OrganizerCore.downloadManager()->markUninstalled(fileName);
}
}