mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-17 23:48:20 +00:00
66 lines
3 KiB
Diff
66 lines
3 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index a4d37ad..aaf771e 100755
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1733,7 +1733,7 @@ install (DIRECTORY
|
|
|
|
install (DIRECTORY
|
|
${PROJECT_SOURCE_DIR}/sounds
|
|
- DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}
|
|
#COMPONENT runtime
|
|
)
|
|
|
|
diff --git a/widgets/displaytext.cpp b/widgets/displaytext.cpp
|
|
index f2f8ee1..b269261 100755
|
|
--- a/widgets/displaytext.cpp
|
|
+++ b/widgets/displaytext.cpp
|
|
@@ -918,7 +918,7 @@ void DisplayText::AudioAlerts()
|
|
{
|
|
if(m_config->alert_Enabled()) {
|
|
QAudioDevice info(QMediaDevices::defaultAudioOutput());
|
|
- QString binPath = QCoreApplication::applicationDirPath();
|
|
+ QString binPath = "/usr/share/wsjtx";
|
|
QAudioFormat format;
|
|
format.setSampleRate(48000);
|
|
format.setChannelCount(1);
|
|
diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp
|
|
index 1536ba5..151417e 100755
|
|
--- a/widgets/mainwindow.cpp
|
|
+++ b/widgets/mainwindow.cpp
|
|
@@ -3299,7 +3299,7 @@ void MainWindow::fastSink(qint64 frames)
|
|
QTimer::singleShot (100, [=] { // UR delete for versions without alerts
|
|
if ((m_config.alert_Enabled()) && (m_config.alert_DXcall()) && (play_DXcall) && (m_hisCall!="")) {
|
|
QAudioDevice info(QMediaDevices::defaultAudioOutput());
|
|
- QString binPath = QCoreApplication::applicationDirPath();
|
|
+ QString binPath = "/usr/share/wsjtx";
|
|
QAudioFormat format;
|
|
format.setSampleRate(48000);
|
|
format.setChannelCount(1);
|
|
@@ -7052,7 +7052,7 @@ void MainWindow::readFromStdout() //readFromStdout
|
|
QTimer::singleShot (100, [=] { // UR delete for versions without alerts
|
|
if (m_config.alert_Enabled() && m_config.alert_DXcall() && play_DXcall && m_hisCall!="") {
|
|
QAudioDevice info(QMediaDevices::defaultAudioOutput());
|
|
- QString binPath = QCoreApplication::applicationDirPath();
|
|
+ QString binPath = "/usr/share/wsjtx";
|
|
QAudioFormat format;
|
|
format.setSampleRate(48000);
|
|
format.setChannelCount(1);
|
|
@@ -10219,7 +10219,7 @@ void MainWindow::mousePressEvent(QMouseEvent *event) // mouse press events
|
|
} else {
|
|
// Testing the default audio device
|
|
QAudioDevice info(QMediaDevices::defaultAudioOutput());
|
|
- QString binPath = QCoreApplication::applicationDirPath();
|
|
+ QString binPath = "/usr/share/wsjtx";
|
|
QAudioFormat format;
|
|
format.setSampleRate(48000);
|
|
format.setChannelCount(1);
|
|
@@ -16985,7 +16985,7 @@ void MainWindow::remove_old_files(const QString &directoryPath, int daysOld)
|
|
void MainWindow::alertQSYmessage ()
|
|
{
|
|
QAudioDevice info(QMediaDevices::defaultAudioOutput());
|
|
- QString binPath = QCoreApplication::applicationDirPath();
|
|
+ QString binPath = "/usr/share/wsjtx";
|
|
QAudioFormat format;
|
|
format.setSampleRate(48000);
|
|
format.setChannelCount(1);
|