Commit bc0c9269 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Dont allow single-click diff action for untracked files

parent 6fe4aecd
Pipeline #170641 passed with stage
in 7 minutes and 56 seconds
......@@ -724,7 +724,7 @@ void GitWidget::handleClick(const QModelIndex &idx, ClickAction clickAction)
return stage({file});
}
if (clickAction == ClickAction::ShowDiff) {
if (clickAction == ClickAction::ShowDiff && statusItemType != GitStatusModel::NodeUntrack) {
showDiff(file, staged);
}
......
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