summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJekyll Wu <adaptee@gmail.com>2012-02-24 12:14:05 (GMT)
committerJekyll Wu <adaptee@gmail.com>2012-02-24 13:21:07 (GMT)
commit363a2701774ffd0b14bfd8223a5848179a427bd6 (patch)
treee22542823db5a6b1e4d72af3b4d448441e51e870
parent84542d294d897f08a1dc96008553052d95ff8db7 (diff)
Allow changing tab title through escape sequence
Users can now change the tab title through "\e]30;Tab Title\a" . This is a feature previously available in KDE3 konsole. FEATURE: 179142 FIXED-IN: 4.9.0 REVIEW: 103862
-rw-r--r--src/Session.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Session.cpp b/src/Session.cpp
index 3157d19..2cbd91e 100644
--- a/src/Session.cpp
+++ b/src/Session.cpp
@@ -510,9 +510,10 @@ void Session::setUserTitle(int what, const QString& caption)
}
if (what == SessionName) {
- if (_nameTitle != caption) {
- setTitle(Session::NameRole, caption);
- return;
+ if (_localTabTitleFormat != caption) {
+ _localTabTitleFormat = caption;
+ setTitle(Session::DisplayedTitleRole, caption);
+ modified = true;
}
}