Reert some changes from fb8f96f2
Signed-off-by:
Waqar Ahmed <waqar.17a@gmail.com>
Signed-off-by:
Waqar Ahmed <waqar.17a@gmail.com>
... | ... | @@ -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)); | ||
Please
register
or
sign in
to reply
|
||
} | ||
} else if (type == GitStatusModel::NodeStage) { | ||
QMenu menu; | ||
... | ... |
mentioned in merge request !390 (merged)
·mentioned in commit cb3eb152
·mentioned in commit cb3eb152
mentioned in commit cb864812
·mentioned in commit cb864812