Commit b3d83af2 authored by Georg Gadinger's avatar Georg Gadinger 🐾
Browse files

katetabbar: do not set any icon when the document is modified

When splitting the view on a modified document the tab bar button
in the new view would show a save icon, whereas the button in the
old view wouldn't.
parent 07f015de
Pipeline #162362 passed with stage
in 3 minutes and 25 seconds
......@@ -320,12 +320,6 @@ void KateTabBar::wheelEvent(QWheelEvent *event)
void KateTabBar::setTabDocument(int idx, KTextEditor::Document *doc)
{
// get right icon to use
QIcon icon;
if (doc->isModified()) {
icon = QIcon::fromTheme(QStringLiteral("document-save"));
}
QVariant data = ensureValidTabData(idx);
KateTabButtonData buttonData = data.value<KateTabButtonData>();
buttonData.doc = doc;
......@@ -335,7 +329,6 @@ void KateTabBar::setTabDocument(int idx, KTextEditor::Document *doc)
tabName.replace(QLatin1Char('&'), QLatin1String("&&"));
setTabText(idx, tabName);
setTabToolTip(idx, doc->url().toDisplayString());
setTabIcon(idx, icon);
}
void KateTabBar::setCurrentDocument(KTextEditor::Document *doc)
......
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