[X2Go-Commits] [x2goclient] 119/142: pulsemanager.cpp: only play startup sound if DEBUG macro is defined.

git-admin at x2go.org git-admin at x2go.org
Thu Jan 14 05:10:43 CET 2016


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch bugfix/osx
in repository x2goclient.

commit c5fb377ea7fb814f217ff9a408e4f78b9da88622
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Fri Oct 30 03:45:49 2015 +0100

    pulsemanager.cpp: only play startup sound if DEBUG macro is defined.
---
 debian/changelog     |    1 +
 src/pulsemanager.cpp |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a7bc63a..855fd9f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -210,6 +210,7 @@ x2goclient (4.0.5.1-0x2go1) UNRELEASED; urgency=low
     - pulsemanager.cpp: also load module-esound-protocol-tcp module.
     - pulsemanager.cpp: make generate_server_config () Windows-compatible.
     - pulsemanager.cpp: make generate_client_config () Windows-compatible.
+    - pulsemanager.cpp: only play startup sound if DEBUG macro is defined.
   * debian/control:
     - Change apache2-dev | libc6-dev build dependency back to apache2-dev
       only. Otherwise, apache2-dev is not installed at all, even though
diff --git a/src/pulsemanager.cpp b/src/pulsemanager.cpp
index 5e66e44..421e54b 100644
--- a/src/pulsemanager.cpp
+++ b/src/pulsemanager.cpp
@@ -292,6 +292,7 @@ void PulseManager::create_client_dir () {
 }
 
 void PulseManager::slot_play_startup_sound () {
+#ifdef DEBUG
   QProcess play_file (0);
 
   play_file.setWorkingDirectory (pulse_server_->workingDirectory ());
@@ -301,6 +302,7 @@ void PulseManager::slot_play_startup_sound () {
 
   if (play_file.waitForStarted ())
     play_file.waitForFinished ();
+#endif // defined (DEBUG)
 }
 
 void PulseManager::on_pulse_finished (int exit_code) {

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list