Commit 4821aa47 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix condition when setting gitPath

Signed-off-by: Waqar Ahmed's avatarWaqar Ahmed <>
parent fb8f96f2
......@@ -256,7 +256,7 @@ GitWidget::~GitWidget()
void GitWidget::setDotGitPath()
const auto dotGitPath = GitUtils::getDotGitPath(m_project->baseDir());
if (dotGitPath.has_value()) {
if (!dotGitPath.has_value()) {
QTimer::singleShot(1, this, [this] {
sendMessage(i18n("Failed to find .git directory, things may not work correctly"), false);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment