diff --git a/src/plugins/git/clonewizardpage.cpp b/src/plugins/git/clonewizardpage.cpp
index db4dd17e2a0903f7dcb266ddd533b1affbf280b0..644ec060b7ec6410f310e24d10d98bd197b763fe 100644
--- a/src/plugins/git/clonewizardpage.cpp
+++ b/src/plugins/git/clonewizardpage.cpp
@@ -62,7 +62,7 @@ bool CloneWizardPagePrivate::urlIsLocal(const QString &url)
 {
     if (url.startsWith(QLatin1String("file://"))
         || url.startsWith(QLatin1Char('/'))
-        || url.at(0).isLetter() && url.at(1) == QChar(':') && url.at(2) == QChar('\\'))
+        || (url.at(0).isLetter() && url.at(1) == QChar(':') && url.at(2) == QChar('\\')))
         return true;
     return false;
 }