Commit 83c4620d authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Use DiffWidget for file history

parent 07ee5372
......@@ -156,8 +156,9 @@ void KateProjectView::showFileGitHistory(const QString &file)
auto fhs = new FileHistoryWidget(dotGitPath.value(), file);
connect(fhs, &FileHistoryWidget::backClicked, this, &KateProjectView::setTreeViewAsCurrent);
connect(fhs, &FileHistoryWidget::commitClicked, this, [this](const QByteArray &diff) {
m_pluginView->showDiffInFixedView(diff);
connect(fhs, &FileHistoryWidget::commitClicked, this, [this, file](const QByteArray &diff) {
auto mw = m_pluginView->mainWindow()->window();
QMetaObject::invokeMethod(mw, "showDiff", Q_ARG(QByteArray, diff), Q_ARG(QString, file), Q_ARG(QString, {}));
});
connect(fhs, &FileHistoryWidget::errorMessage, m_pluginView, [this](const QString &s, bool warn) {
QVariantMap genericMessage;
......
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