Commit d473477a authored by David Faure's avatar David Faure
Browse files

Look up kttsd.desktop correctly.

svn path=/trunk/KDE/kdegraphics/okular/; revision=1228495
parent ebb5118a
......@@ -615,8 +615,8 @@ m_cliPresentation(false), m_embedMode(detectEmbedMode(parentWidget, parent, args
slotNewConfig();
// [SPEECH] check for KTTSD presence and usability
KService::List offers = KServiceTypeTrader::self()->query("DBUS/Text-to-Speech", "Name == 'KTTSD'");
Okular::Settings::setUseKTTSD( !offers.isEmpty() );
const KService::Ptr kttsd = KService::serviceByDesktopName("kttsd");
Okular::Settings::setUseKTTSD( kttsd );
Okular::Settings::self()->writeConfig();
rebuildBookmarkMenu( false );
......
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