Commit 711e58c5 authored by Georg Gadinger's avatar Georg Gadinger 🐾 Committed by Christoph Cullmann
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 745617da
Pipeline #161675 passed with stage
in 7 minutes and 59 seconds
......@@ -329,12 +329,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;
......@@ -344,7 +338,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)
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