aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Tran <vicr12345@gmail.com>2018-12-05 09:35:24 +1100
committerVictor Tran <vicr12345@gmail.com>2018-12-05 09:35:24 +1100
commite24ba952ce2af873b0a502a84cc657ccfa6fa778 (patch)
treed9e74bccb75e1d8379ceeb4388c050cba1a29250
parent934f6594aaa955631e9364e112a6683d8576b66c (diff)
downloadtheInstaller-e24ba952ce2af873b0a502a84cc657ccfa6fa778.tar.gz
theInstaller-e24ba952ce2af873b0a502a84cc657ccfa6fa778.tar.bz2
theInstaller-e24ba952ce2af873b0a502a84cc657ccfa6fa778.zip
Fix a bug where updating would detect installer
-rw-r--r--installer/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/mainwindow.cpp b/installer/mainwindow.cpp
index e66e273..8acd8eb 100644
--- a/installer/mainwindow.cpp
+++ b/installer/mainwindow.cpp
@@ -214,7 +214,7 @@ void MainWindow::on_installButton_clicked()
while (iterator.hasNext()) {
iterator.next();
QFileInfo executable = iterator.fileInfo();
- if (executable.suffix() == "exe") {
+ if (executable.suffix() == "exe" && executable.baseName() != "uninstall") {
executableNames.append(executable.filePath());
}
}