diff --git a/src/core/project.cpp b/src/core/project.cpp index 0c4846e9..c0abfb21 100644 --- a/src/core/project.cpp +++ b/src/core/project.cpp @@ -418,6 +418,9 @@ QVariantList Project::findInFiles(const QString &pattern) const if (pattern.trimmed().isEmpty()) { return result; } + if (m_root.isEmpty()) { + return result; + } QProcess process;