|
|
@ -14,7 +14,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
|
|
#include <kuniqueapplication.h>
|
|
|
|
#include <tdeuniqueapplication.h>
|
|
|
|
#include <tdeaboutdata.h>
|
|
|
|
#include <tdeaboutdata.h>
|
|
|
|
#include <tdecmdlineargs.h>
|
|
|
|
#include <tdecmdlineargs.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
@ -45,14 +45,14 @@ int main( int argc, char **argv )
|
|
|
|
about.setTranslator( I18N_NOOP( "INSERT YOUR NAME HERE" ), I18N_NOOP( "INSERT YOUR EMAIL ADDRESS" ) );
|
|
|
|
about.setTranslator( I18N_NOOP( "INSERT YOUR NAME HERE" ), I18N_NOOP( "INSERT YOUR EMAIL ADDRESS" ) );
|
|
|
|
TDECmdLineArgs::init( argc, argv, &about );
|
|
|
|
TDECmdLineArgs::init( argc, argv, &about );
|
|
|
|
TDECmdLineArgs::addCmdLineOptions( options );
|
|
|
|
TDECmdLineArgs::addCmdLineOptions( options );
|
|
|
|
KUniqueApplication::addCmdLineOptions();
|
|
|
|
TDEUniqueApplication::addCmdLineOptions();
|
|
|
|
|
|
|
|
|
|
|
|
if ( !KUniqueApplication::start() ) {
|
|
|
|
if ( !TDEUniqueApplication::start() ) {
|
|
|
|
std::cout << "Krecipes is already running!" << std::endl;
|
|
|
|
std::cout << "Krecipes is already running!" << std::endl;
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KUniqueApplication app;
|
|
|
|
TDEUniqueApplication app;
|
|
|
|
|
|
|
|
|
|
|
|
// see if we are starting with session management
|
|
|
|
// see if we are starting with session management
|
|
|
|
if ( app.isRestored() ) {
|
|
|
|
if ( app.isRestored() ) {
|
|
|
|