aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/setup
diff options
context:
space:
mode:
authorGravatar wodim2017-12-27 20:22:42 +0000
committerGravatar GitHub2017-12-27 20:22:42 +0000
commit582252f695587d3b9f67f1cee24315aff5f8ba2d (patch)
tree96e5650359b5704fd46309b057dba22ecbdabcc6 /src/modules/setup
parentWorkaround to vc_redist #2335 (#2336) (diff)
downloadKVIrc-582252f695587d3b9f67f1cee24315aff5f8ba2d.tar.gz
KVIrc-582252f695587d3b9f67f1cee24315aff5f8ba2d.tar.bz2
KVIrc-582252f695587d3b9f67f1cee24315aff5f8ba2d.zip
Fix the sound system autodetection (#2278)
* Automatically detect a sound system during first startup. Previously, the default system for Windows was "null". * Remove phonon from the sound system autodetection list. Our phonon detection code didn't work well, and "qt" is a safe default for Linux.
Diffstat (limited to 'src/modules/setup')
-rw-r--r--src/modules/setup/libkvisetup.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/setup/libkvisetup.cpp b/src/modules/setup/libkvisetup.cpp
index 606ca9ac6..4c576e3a8 100644
--- a/src/modules/setup/libkvisetup.cpp
+++ b/src/modules/setup/libkvisetup.cpp
@@ -33,10 +33,13 @@
#include "KviWindow.h"
#include "KviTheme.h"
#include "KviIrcServerDataBase.h"
+#include "KviModuleManager.h"
#include <QString>
#include <QFile>
+extern KVIRC_API KviModuleManager * g_pModuleManager;
+
// this will be chosen during the setup process
QString g_szChoosenIncomingDirectory;
int g_iThemeToApply = THEME_APPLY_NONE;
@@ -117,6 +120,11 @@ KVIMODULEEXPORTFUNC void setup_finish()
delete pParams;
KVI_OPTION_BOOL(KviOption_boolShowServersConnectDialogOnStart) = true;
}
+
+ // detect the most appropriate sound system
+ KviModule * m = g_pModuleManager->getModule("snd");
+ if(m)
+ m->ctrl("detectSoundSystem", nullptr);
}
}