[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE/kdelibs/kdeui/kernel
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2010-07-28 14:27:54
Message-ID: 20100728142754.GB29403 () troll08 ! nokia ! trolltech ! de
[Download RAW message or body]

On Tue, Jul 20, 2010 at 02:40:49PM +0200, Tobias Koenig wrote:
> SVN commit 1152158 by tokoe:
> 
> silence warning
> 
> 
>  M  +3 -0      kuniqueapplication.cpp  
> 
> 
> --- trunk/KDE/kdelibs/kdeui/kernel/kuniqueapplication.cpp #1152157:1152158
> @@ -422,10 +422,13 @@
>      if (!asn_id.isEmpty())
>        parent()->setStartupId(asn_id);
>  
> +    const int index = parent()->metaObject()->indexOfMethod("loadCommandLineOptionsForNewInstance");
> +    if (index != -1) {
>      // This hook allows the application to set up KCmdLineArgs using addCmdLineOptions
>      // before we load the app args. Normally not necessary, but needed by kontact
>      // since it switches to other sets of options when called as e.g. kmail or korganizer
>      QMetaObject::invokeMethod(parent(), "loadCommandLineOptionsForNewInstance");
>
as now you already have the method index here, you could optimize the
call. oh, well.

> +    }
>  
>      QDataStream ds(args);
>      KCmdLineArgs::loadAppArgs(ds);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic