Commit 550c5096 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Reert some changes from fb8f96f2


Signed-off-by: Waqar Ahmed's avatarWaqar Ahmed <waqar.17a@gmail.com>
parent 4821aa47
......@@ -648,7 +648,7 @@ void GitWidget::handleClick(const QModelIndex &idx, ClickAction clickAction)
return;
}
const QString file = idx.data(GitStatusModel::FileNameRole).toString();
const QString file = m_gitPath + idx.data(GitStatusModel::FileNameRole).toString();
bool staged = idx.internalId() == GitStatusModel::NodeStage;
if (clickAction == ClickAction::StageUnstage) {
......@@ -978,7 +978,7 @@ void GitWidget::treeViewContextMenuEvent(QContextMenuEvent *e)
return;
}
const QString file = idx.data(GitStatusModel::FileNameRole).toString();
const QString file = m_gitPath + idx.data(GitStatusModel::FileNameRole).toString();
if (act == stageAct) {
if (staged) {
return unstage({file});
......@@ -1001,7 +1001,7 @@ void GitWidget::treeViewContextMenuEvent(QContextMenuEvent *e)
} else if (act == launchDifftoolAct) {
launchExternalDiffTool(idx.data(GitStatusModel::FileNameRole).toString(), staged);
} else if (act == openFile) {
m_mainWin->openUrl(QUrl::fromLocalFile(m_gitPath + QLatin1Char('/') + file));
m_mainWin->openUrl(QUrl::fromLocalFile(m_gitPath + file));
  • This does not work according to my testing, the revert here was not correct. It should be m_mainWin->openUrl(QUrl::fromLocalFile(file));.

  • Fixed in cb3eb152

Please register or sign in to reply
}
} else if (type == GitStatusModel::NodeStage) {
QMenu menu;
......
Markdown is supported
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