From 7029de3d871d8e1148ee9ddec84a625bcda5b8b4 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sat, 10 Jun 2000 19:47:23 +0000 Subject: [PATCH] XTerm title hack: don't activate for arg==1 svn path=/trunk/kdebase/konsole/; revision=52837 --- src/TEmuVt102.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TEmuVt102.C b/src/TEmuVt102.C index e8ca17c3..5960e5f7 100644 --- a/src/TEmuVt102.C +++ b/src/TEmuVt102.C @@ -304,7 +304,9 @@ void TEmuVt102::XtermHack() QChar *str = new QChar[ppos-i-2]; for (int j = 0; j < ppos-i-2; j++) str[j] = pbuf[i+1+j]; QString unistr(str,ppos-i-2); - if (arg <= 2) emit changeTitle(arg,unistr); + // arg == 1 doesn't change the title. In XTerm it only changes the icon name + // (btw: arg=0 changes title and icon, arg=1 only icon, arg=2 only title + if (arg == 0 || arg == 2) emit changeTitle(arg,unistr); delete str; }