[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: proko2: kdepim/kresources/kolab/shared
From: Till Adam <adam () kde ! org>
Date: 2004-08-31 16:18:24
Message-ID: 20040831161824.B71A590FC () office ! kde ! org
[Download RAW message or body]
CVS commit by tilladam:
Make sure that objIds passed to DCOPObject/Client are unique within the
same process. This (along with another patch pending review) makes several
instances of the resource in KOrganizer possible. Handy for debugging.
M +4 -1 resourcekolabbase.cpp 1.1.2.16
--- kdepim/kresources/kolab/shared/resourcekolabbase.cpp #1.1.2.15:1.1.2.16
@@ -46,4 +46,5 @@
using namespace Kolab;
+static unsigned int uniquifier = 0;
ResourceKolabBase::ResourceKolabBase( const QCString& objId )
@@ -51,5 +52,6 @@ ResourceKolabBase::ResourceKolabBase( co
{
KGlobal::locale()->insertCatalogue( "kres_kolab" );
- mConnection = new KMailConnection( this, objId );
+ QString uniqueObjId = QString( objId ) + QString::number( uniquifier++ );
+ mConnection = new KMailConnection( this, uniqueObjId.utf8() );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic