|
|
|
@ -144,7 +144,7 @@ void PilotDaemonTray::setupWidget()
|
|
|
|
|
{
|
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
|
|
|
|
|
|
KGlobal::iconLoader()->addAppDir( CSL1("kpilot") );
|
|
|
|
|
TDEGlobal::iconLoader()->addAppDir( CSL1("kpilot") );
|
|
|
|
|
icons[Normal] = loadIcon( CSL1("kpilotDaemon") );
|
|
|
|
|
icons[Busy] = loadIcon( CSL1("busysync") );
|
|
|
|
|
icons[NotListening] = loadIcon( CSL1("nosync") );
|
|
|
|
@ -186,7 +186,7 @@ void PilotDaemonTray::setupWidget()
|
|
|
|
|
|
|
|
|
|
KHelpMenu *help = new KHelpMenu(menu,aboutData);
|
|
|
|
|
menu->insertItem(
|
|
|
|
|
KGlobal::iconLoader()->loadIconSet(CSL1("help"),KIcon::Small,0,true),
|
|
|
|
|
TDEGlobal::iconLoader()->loadIconSet(CSL1("help"),KIcon::Small,0,true),
|
|
|
|
|
i18n("&Help"),help->menu(),false /* no whatsthis */);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1236,13 +1236,13 @@ void PilotDaemon::slotRunConfig()
|
|
|
|
|
// If it succeeds, we can assume kpilot is running and then try
|
|
|
|
|
// to send the configure() DCOP call.
|
|
|
|
|
// If it fails (probably because kpilot isn't running) it tries
|
|
|
|
|
// to call kpilot via KProcess (using a command line switch to
|
|
|
|
|
// to call kpilot via TDEProcess (using a command line switch to
|
|
|
|
|
// only bring up the configure dialog).
|
|
|
|
|
//
|
|
|
|
|
// Implementing the function this way catches all cases.
|
|
|
|
|
// ie 1 KPilot running with configure dialog open (raise())
|
|
|
|
|
// 2 KPilot running with dialog NOT open (configureConduits())
|
|
|
|
|
// 3 KPilot NOT running (KProcess)
|
|
|
|
|
// 3 KPilot NOT running (TDEProcess)
|
|
|
|
|
|
|
|
|
|
DCOPClient *client = kapp->dcopClient();
|
|
|
|
|
|
|
|
|
@ -1257,7 +1257,7 @@ void PilotDaemon::slotRunConfig()
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
// KPilot not running
|
|
|
|
|
KProcess *p = new KProcess;
|
|
|
|
|
TDEProcess *p = new TDEProcess;
|
|
|
|
|
*p << "kpilot" << "-s";
|
|
|
|
|
|
|
|
|
|
p->start();
|
|
|
|
|