Changeset View
Changeset View
Standalone View
Standalone View
apps/kmix.cpp
Show First 20 Lines • Show All 1218 Lines • ▼ Show 20 Line(s) | |||||
1219 | 1219 | | |||
1220 | void KMixWindow::toggleMenuBar() | 1220 | void KMixWindow::toggleMenuBar() | ||
1221 | { | 1221 | { | ||
1222 | menuBar()->setVisible(_actionShowMenubar->isChecked()); | 1222 | menuBar()->setVisible(_actionShowMenubar->isChecked()); | ||
1223 | } | 1223 | } | ||
1224 | 1224 | | |||
1225 | void KMixWindow::slotKdeAudioSetupExec() | 1225 | void KMixWindow::slotKdeAudioSetupExec() | ||
1226 | { | 1226 | { | ||
1227 | forkExec(QStringList() << "kcmshell5" << "kcm_phonon"); | 1227 | #if defined(HAVE_PULSE) | ||
1228 | forkExec(QStringList() << "kcmshell5" << "kcm_pulseaudio"); | ||||
1229 | #else | ||||
1230 | forkExec(QStringList() << "phononsettings"); | ||||
1231 | #endif | ||||
1228 | } | 1232 | } | ||
1229 | 1233 | | |||
1230 | void KMixWindow::forkExec(const QStringList& args) | 1234 | void KMixWindow::forkExec(const QStringList& args) | ||
1231 | { | 1235 | { | ||
1232 | int pid = KProcess::startDetached(args); | 1236 | int pid = KProcess::startDetached(args); | ||
1233 | if (pid == 0) | 1237 | if (pid == 0) | ||
1234 | { | 1238 | { | ||
1235 | KMessageBox::error(this, i18n("The helper application is either not installed or not working.\n\n%1", | 1239 | KMessageBox::error(this, i18n("The helper application is either not installed or not working.\n\n%1", | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |