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

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/kernel
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2010-07-20 12:40:49
Message-ID: 20100720124049.BD86DAC76D () svn ! kde ! org
[Download RAW message or body]

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");
+    }
 
     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