diff --git a/src/libs/utils/pathchooser.cpp b/src/libs/utils/pathchooser.cpp index 3f658ea4812..f167cf6c6f0 100644 --- a/src/libs/utils/pathchooser.cpp +++ b/src/libs/utils/pathchooser.cpp @@ -582,7 +582,7 @@ bool PathChooser::validatePath(FancyLineEdit *edit, QString *errorMessage) const } break; case PathChooser::Directory: - if (filePath.isDir()) { + if (filePath.exists() && !filePath.isDir()) { if (errorMessage) *errorMessage = tr("The path \"%1\" is not a directory.").arg(filePath.toUserOutput()); return false;