summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorChris Bessent <lost.dragonist@gmail.com>2022-01-02 04:54:22 -0700
committerChris Bessent <lost.dragonist@gmail.com>2022-01-02 04:54:22 -0700
commit9fdf3b759d558dc5f021b4cc408e3d409d9a19d1 (patch)
treea8576e3807411c2e23cae7d2d0cd2a737452bf31 /src/mainwindow.cpp
parent1df1ea5e11e9f068f3d1c34ee9b2d911489fb98c (diff)
Fix update checking for files not installed from the downloads
This is the difference between "D:\Downloads\USSEP.7z" and "USSEP.7z".
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 7c34c195..028aabfd 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2939,7 +2939,7 @@ void MainWindow::nxmUpdatesAvailable(QString gameName, int modID, QVariant userD
for (auto mod : modsList) {
QString validNewVersion;
int newModStatus = -1;
- QString installedFile = mod->installationFile();
+ QString installedFile = QFileInfo(mod->installationFile()).fileName();
if (!installedFile.isEmpty()) {
QVariantMap foundFileData;