OSDN Git Service

generic: adjust to KUniqueApplication changes
authorIvailo Monev <xakepa10@gmail.com>
Thu, 13 Jul 2023 14:42:02 +0000 (17:42 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Thu, 13 Jul 2023 15:24:25 +0000 (18:24 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kget/main.cpp
kmix/apps/main.cpp
kvkbd/src/main.cpp

index 30ffbf0..7489452 100644 (file)
@@ -133,8 +133,6 @@ int main(int argc, char *argv[])
     option.add("+[URL(s)]", ki18n("URL(s) to download"));
     KCmdLineArgs::addCmdLineOptions(option);
 
-    KGetApp::addCmdLineOptions();
-
     if (!KGetApp::start())
     {
         fprintf(stderr, "kget is already running!\n");
index 947d201..4132e0e 100644 (file)
@@ -59,7 +59,6 @@ int main(int argc, char *argv[])
    KCmdLineOptions options;
    options.add("keepvisibility", ki18n("Inhibits the unhiding of the KMix main window, if KMix is already running."));
    KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
-   KUniqueApplication::addCmdLineOptions();
 
    KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
    bool hasArgKeepvisibility = args->isSet("keepvisibility");
index c8ed482..b55d6b7 100644 (file)
@@ -79,7 +79,6 @@ int main(int argc, char **argv)
     options.add("loginhelper", ki18n("Stand alone version for use with KDM or XDM.\n"
                                      "See Kvkbd Handbook for information on how to use this option."));
     KCmdLineArgs::addCmdLineOptions(options);
-    KUniqueApplication::addCmdLineOptions();
 
     const bool is_login = KCmdLineArgs::parsedArgs()->isSet("loginhelper");
     if (!is_login) {