|
|
@ -50,24 +50,6 @@
|
|
|
|
#include "basket_options.h"
|
|
|
|
#include "basket_options.h"
|
|
|
|
#include "backup.h"
|
|
|
|
#include "backup.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* Thanks to JuK for this Application class */
|
|
|
|
|
|
|
|
/*#if KDE_IS_VERSION( 3, 1, 90 )
|
|
|
|
|
|
|
|
typedef KUniqueApplication Application; // KDE 3.2 and later already re-show the main window
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
class Application : public KUniqueApplication
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Application() : KUniqueApplication(true, true, false) {}
|
|
|
|
|
|
|
|
virtual ~Application() {}
|
|
|
|
|
|
|
|
virtual int newInstance() {
|
|
|
|
|
|
|
|
if (win)
|
|
|
|
|
|
|
|
win->setActive(true);
|
|
|
|
|
|
|
|
return KUniqueApplication::newInstance();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// TDECmdLineArgs::init will modify argv[0] so we remember it:
|
|
|
|
// TDECmdLineArgs::init will modify argv[0] so we remember it:
|
|
|
@ -76,8 +58,7 @@ int main(int argc, char *argv[])
|
|
|
|
TDECmdLineArgs::init(argc, argv, Global::about());
|
|
|
|
TDECmdLineArgs::init(argc, argv, Global::about());
|
|
|
|
TDECmdLineArgs::addCmdLineOptions(basket_options);
|
|
|
|
TDECmdLineArgs::addCmdLineOptions(basket_options);
|
|
|
|
|
|
|
|
|
|
|
|
KUniqueApplication::addCmdLineOptions();
|
|
|
|
TDEUniqueApplication::addCmdLineOptions();
|
|
|
|
//KUniqueApplication app;
|
|
|
|
|
|
|
|
Application app;
|
|
|
|
Application app;
|
|
|
|
|
|
|
|
|
|
|
|
Backup::figureOutBinaryPath(argv0, app);
|
|
|
|
Backup::figureOutBinaryPath(argv0, app);
|
|
|
|