summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2018-11-29 15:33:47 -0600
committerLostDragonist <lost.dragonist@gmail.com>2018-11-29 15:33:47 -0600
commit9431597e6683ed74285e78057145f5ff6d326bb9 (patch)
treeaed8691c32527a6571eb7330e3835500d485030e /src/organizercore.cpp
parent4566b51093c9dfe0afbfa33020cffebca7a99aa3 (diff)
Correct comparison logic for blacklist warning
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 9ac3cb63..4dbe7c86 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -1340,7 +1340,7 @@ HANDLE OrganizerCore::spawnBinaryProcess(const QFileInfo &binary,
}
for (auto exec : settings().executablesBlacklist().split(";")) {
- if (exec.compare(binary.fileName(), Qt::CaseInsensitive)) {
+ if (exec.compare(binary.fileName(), Qt::CaseInsensitive) == 0) {
if (QuestionBoxMemory::query(window, QString("blacklistedExecutable"), binary.fileName(),
tr("Blacklisted Executable"),
tr("The executable you are attempted to launch is blacklisted in the virtual file"