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
icc-effect-5.14.5
Matthias Ettrich 2000-10-17 15:55:40 +00:00
parent 0b4ba11c29
commit a74ed42f17
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}