Commit 92d59de1 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Add an icon for DiffWidget

To be consistent with other tabs
parent f832c443
Pipeline #229241 passed with stage
in 12 minutes and 52 seconds
......@@ -1332,6 +1332,8 @@ void KateMainWindow::showDiff(const QByteArray &wordDiff, const DiffParams &para
else
w->setWindowTitle(i18n("Diff %1..%2", Utils::fileNameFromPath(params.srcFile), Utils::fileNameFromPath(params.destFile)));
}
w->setWindowIcon(QIcon::fromTheme(QStringLiteral("text-x-patch")));
addWidget(w);
w->openDiff(wordDiff);
}
......
......@@ -482,6 +482,7 @@ QVector<KTextEditor::Document *> KateTabBar::documentList() const
void KateTabBar::setCurrentWidget(QWidget *widget)
{
int idx = insertTab(-1, widget->windowTitle());
setTabIcon(idx, widget->windowIcon());
setTabData(idx, QVariant::fromValue(widget));
setCurrentIndex(idx);
}
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