Commit e4a14234 authored by Waldo Bastian's avatar Waldo Bastian

* Use startServiceByDesktopName instead of startServiceByName, it's more

reliable
* No need to attach, all KDE applications register with DCOP by default already

svn path=/trunk/kdegraphics/kpdf/; revision=390754
parent 08aeb0b7
......@@ -252,13 +252,8 @@ Part::Part(QWidget *parentWidget, const char *widgetName,
// [SPEECH] check for KTTSD presence and usability
Settings::setUseKTTSD( true );
DCOPClient * client = DCOPClient::mainClient();
// Albert says is this ever necessary?
// we already attached on Part constructor
if ( !client->isAttached() )
client->attach();
if ( !client->isApplicationRegistered("kttsd") )
if ( KApplication::startServiceByName( "KTTSD" ) )
if ( !kapp->dcopClient()->isApplicationRegistered("kttsd") )
if ( KApplication::startServiceByDesktopName( "kttsd" ) )
Settings::setUseKTTSD( false );
// set our XML-UI resource file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment