People have strange ideas ... filter out unprintable characters from window
captions. CCMAIL: 68882-done@bugs.kde.org svn path=/trunk/kdebase/kwin/; revision=269522
This commit is contained in:
parent
897e67f79a
commit
693d7d77c1
1 changed files with 5 additions and 0 deletions
|
@ -1149,6 +1149,11 @@ void Client::fetchName()
|
||||||
if ( s != cap_normal )
|
if ( s != cap_normal )
|
||||||
{
|
{
|
||||||
bool reset_name = cap_normal.isEmpty();
|
bool reset_name = cap_normal.isEmpty();
|
||||||
|
for( unsigned int i = 0;
|
||||||
|
i < s.length();
|
||||||
|
++i )
|
||||||
|
if( !s[ i ].isPrint())
|
||||||
|
s[ i ] = ' ';
|
||||||
cap_normal = s;
|
cap_normal = s;
|
||||||
bool was_suffix = ( !cap_suffix.isEmpty());
|
bool was_suffix = ( !cap_suffix.isEmpty());
|
||||||
cap_suffix = QString::null;
|
cap_suffix = QString::null;
|
||||||
|
|
Loading…
Reference in a new issue