Skip to content

Commit 31f6c70

Browse files
committed
Fix warning about missing or non-existing QTDIR
- missing parenthesis caused wrong warning output
1 parent 8a33ce7 commit 31f6c70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generator/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ namespace
100100
QString qtdir = getenv("QTDIR");
101101
if (qtdir.isEmpty() || !QDir(qtdir).exists(qtdir))
102102
{
103-
QString reason = "The QTDIR environment variable " + qtdir.isEmpty() ?
104-
"is not set. " : "points to a non-existing directory. ";
103+
QString reason = "The QTDIR environment variable " +
104+
(qtdir.isEmpty() ? "is not set. " : "points to a non-existing directory. ");
105105
#if defined(Q_OS_MAC)
106106
qWarning() << reason << "Assuming standard binary install using frameworks.";
107107
QString frameworkDir = "/Library/Frameworks";

0 commit comments

Comments
 (0)