summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Wenninger <jowenn@kde.org>2014-01-23 00:49:33 (GMT)
committerJoseph Wenninger <jowenn@kde.org>2014-01-23 10:29:03 (GMT)
commitebc06973bfbac3a2769fd4309252459a1c798d89 (patch)
tree25cd90d6339b9d88fc55c47028016f415926f445
parent50b12866e5115b8886fc8def0e4cd8453c7816a2 (diff)
show the modification asterisk in the titlebar, although I'm unsure about that. The test [modified] would be better I think
-rw-r--r--kate/app/katemainwindow.cpp2
-rw-r--r--kwrite/kwrite.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/kate/app/katemainwindow.cpp b/kate/app/katemainwindow.cpp
index 0e38867..249514b 100644
--- a/kate/app/katemainwindow.cpp
+++ b/kate/app/katemainwindow.cpp
@@ -878,7 +878,7 @@ void KateMainWindow::updateCaption (KTextEditor::Document *doc)
if (!m_viewManager->activeView()->document()->isReadWrite())
readOnlyCaption=i18n(" [read only]");
- setCaption( sessName + c+readOnlyCaption,
+ setCaption( sessName + c+readOnlyCaption+QStringLiteral(" [*]"),
m_viewManager->activeView()->document()->isModified());
}
diff --git a/kwrite/kwrite.cpp b/kwrite/kwrite.cpp
index 3c63600..91a6bfe 100644
--- a/kwrite/kwrite.cpp
+++ b/kwrite/kwrite.cpp
@@ -480,7 +480,7 @@ void KWrite::documentNameChanged ()
readOnlyCaption=i18n(" [read only]");
if (m_view->document()->url().isEmpty()) {
- setCaption(i18n("Untitled")+readOnlyCaption,m_view->document()->isModified());
+ setCaption(i18n("Untitled")+readOnlyCaption+QStringLiteral(" [*]"),m_view->document()->isModified());
}
else
{