make "doNotManage" work with regular expressions as advertised. Otherwise,
kstart does not work properly (see thread on kde-devel) svn path=/trunk/kdebase/kwin/; revision=68106
This commit is contained in:
parent
0b4ba11c29
commit
a74ed42f17
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
|||
#include <stdlib.h>
|
||||
#include <qwhatsthis.h>
|
||||
#include <qdatastream.h>
|
||||
#include <qregexp.h>
|
||||
#include <kapp.h>
|
||||
#include <dcopclient.h>
|
||||
#include <kprocess.h>
|
||||
|
@ -1547,7 +1548,8 @@ void Workspace::doNotManage( QString title )
|
|||
bool Workspace::isNotManaged( const QString& title )
|
||||
{
|
||||
for ( QStringList::Iterator it = doNotManageList.begin(); it != doNotManageList.end(); ++it ) {
|
||||
if ( (*it) == title ) {
|
||||
QRegExp r( (*it) );
|
||||
if (r.match(title) != -1) {
|
||||
doNotManageList.remove( it );
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue