From kde-commits Wed Mar 23 20:49:14 2005 From: David Faure Date: Wed, 23 Mar 2005 20:49:14 +0000 To: kde-commits Subject: kdelibs/kdecore Message-Id: <20050323204914.097493CF () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111161096727458 CVS commit by faure: Testcase: "kontact --module kmail", then "kmail faure@kde.org" -> since the kmail options have been loaded (by the kontact process) after a KCmdLineArgs::reset(), kontact barfs with "no such option --module". The problem is that KCmdLineArgs::parsedArgs() reparses the real args (argc/argv), but the whole point of calling loadAppArgs() was to ship over the already-parsed args from the other process. This fixes it. Approved by Waldo (and indeed when KUniqueApplication calls loadAppArgs, parsed is already true, so no-op there). Bug reported by Tobias, who will close the appropriate bug report[s] :) M +1 -0 kcmdlineargs.cpp 1.102 --- kdelibs/kdecore/kcmdlineargs.cpp #1.101:1.102 @@ -303,4 +303,5 @@ KCmdLineArgs::loadAppArgs( QDataStream & } } + parsed = true; }