* 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
remotes/origin/kpdf-3.4
Waldo Bastian 21 years ago
parent 08aeb0b73a
commit e4a142347e
  1. 9
      part.cpp

@ -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

Loading…
Cancel
Save