From e24ba952ce2af873b0a502a84cc657ccfa6fa778 Mon Sep 17 00:00:00 2001 From: Victor Tran Date: Wed, 5 Dec 2018 09:35:24 +1100 Subject: Fix a bug where updating would detect installer --- installer/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installer/mainwindow.cpp') 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()); } } -- cgit v1.2.3