Re: qFatal usage in KStandardDirs

2011-01-14 Thread Michael Pyne
On Friday, January 14, 2011 20:53:07 Aaron J. Seigo wrote: > hi... > > i just came across this in kstandarddirs.cpp: > > if (dirs.isEmpty()) { > qFatal("KStandardDirs: The resource type %s is not > registered", type); > } else { > path = rea

qFatal usage in KStandardDirs

2011-01-14 Thread Aaron J. Seigo
hi... i just came across this in kstandarddirs.cpp: if (dirs.isEmpty()) { qFatal("KStandardDirs: The resource type %s is not registered", type); } else { path = realPath(dirs.first()); } isn't this is a bit heavy handed? for me

Re: KSharedDataCache warning message...

2011-01-14 Thread Michael Pyne
On Friday, January 14, 2011 13:58:34 Dawit A wrote: > Can the warning message below be commented out if it is not critical ? > It simply overwhelms my ~/.xsession-errors file to the point where I > cannot look for other error messages. > > */KSharedDataCache: Trying to remove an entry which is alr

Re: Multiple QRegExp crashes when multithreading in KRunner

2011-01-14 Thread Thiago Macieira
On Friday, 14 de January de 2011 20:28:04 Andreas Pakulat wrote: > On 14.01.11 17:51:56, Albert Astals Cid wrote: > > A Divendres, 14 de gener de 2011, Sebastian Trueg va escriure: > > > However, the query parser still uses static QRegExp objects which > > > seems > > > a bad idea, isn't that right

Re: Multiple QRegExp crashes when multithreading in KRunner

2011-01-14 Thread Thiago Macieira
On Friday, 14 de January de 2011 21:49:01 Ingo Klöcker wrote: > On Friday 14 January 2011, Thiago Macieira wrote: > > On Friday, 14 de January de 2011 13:46:19 Sebastian Trueg wrote: > > > However, the query parser still uses static QRegExp objects which > > > seems a bad idea, isn't that right? >

Re: KIO design decision necessary: unique names in KIO listings

2011-01-14 Thread David Faure
On Friday 14 January 2011, Sebastian Trueg wrote: > Hi guys, > > the problem is fairly simple: KIO relies on entry names to be unique. > That makes sense since there needs to be some way to identify the items > in a dir listing. This also worked nicely in pre-Nepomuk days. > > However, with the i

Re: Multiple QRegExp crashes when multithreading in KRunner

2011-01-14 Thread Ingo Klöcker
On Friday 14 January 2011, Thiago Macieira wrote: > On Friday, 14 de January de 2011 13:46:19 Sebastian Trueg wrote: > > However, the query parser still uses static QRegExp objects which > > seems a bad idea, isn't that right? > > static QRegExp are a bad idea regardless of whether threading is >

KIO design decision necessary: unique names in KIO listings

2011-01-14 Thread Sebastian Trueg
Hi guys, the problem is fairly simple: KIO relies on entry names to be unique. That makes sense since there needs to be some way to identify the items in a dir listing. This also worked nicely in pre-Nepomuk days. However, with the introduction of desktop search the filename is no unique identifi

Re: Multiple QRegExp crashes when multithreading in KRunner

2011-01-14 Thread Andreas Pakulat
On 14.01.11 17:51:56, Albert Astals Cid wrote: > A Divendres, 14 de gener de 2011, Sebastian Trueg va escriure: > > However, the query parser still uses static QRegExp objects which seems > > a bad idea, isn't that right? > > Thus, I suppose it would be better to wrap them in a mutex'ed object and

KSharedDataCache warning message...

2011-01-14 Thread Dawit A
Can the warning message below be commented out if it is not critical ? It simply overwhelms my ~/.xsession-errors file to the point where I cannot look for other error messages. */KSharedDataCache: Trying to remove an entry which is already invalid. This cache is likely corrupt.

Re: Multiple QRegExp crashes when multithreading in KRunner

2011-01-14 Thread Albert Astals Cid
A Divendres, 14 de gener de 2011, Sebastian Trueg va escriure: > However, the query parser still uses static QRegExp objects which seems > a bad idea, isn't that right? > Thus, I suppose it would be better to wrap them in a mutex'ed object and > create that via K_GLOBAL_STATIC? Why would you want

Re: Multiple QRegExp crashes when multithreading in KRunner

2011-01-14 Thread Thiago Macieira
On Friday, 14 de January de 2011 13:46:19 Sebastian Trueg wrote: > However, the query parser still uses static QRegExp objects which seems > a bad idea, isn't that right? static QRegExp are a bad idea regardless of whether threading is involved or not. > Thus, I suppose it would be better to wra

Re: Multiple QRegExp crashes when multithreading in KRunner

2011-01-14 Thread Sebastian Trueg
However, the query parser still uses static QRegExp objects which seems a bad idea, isn't that right? Thus, I suppose it would be better to wrap them in a mutex'ed object and create that via K_GLOBAL_STATIC? Cheers, Sebastian On 01/14/2011 01:17 AM, Thiago Macieira wrote: > On Thursday, 13 de Jan

Re: Multiple QRegExp crashes when multithreading in KRunner

2011-01-14 Thread Matthias Fuchs
Am Freitag 14 Januar 2011, 01:16:07 schrieb Thiago Macieira: > On Thursday, 13 de January de 2011 15:08:06 Aaron J. Seigo wrote: > > On Thursday, January 13, 2011, Thiago Macieira wrote: > > > On Thursday, 13 de January de 2011 22:43:28 Matthias Fuchs wrote: > > > > Hi, > > > > > > > > There are s