media-radio/wsjtx_improved: Fix build with Qt-6.9.1

Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
Thomas Beierlein
2025-07-09 12:44:14 +02:00
parent c980d8ab21
commit 8fbb68e1ba
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
diff --git a/widgets/logqso.cpp b/widgets/logqso.cpp
index 3f81b4d..eed2835 100755
--- a/widgets/logqso.cpp
+++ b/widgets/logqso.cpp
@@ -176,7 +176,7 @@ void LogQSO::loadSettings ()
QString comments_location; // load the content of comments.txt file to the comments combo box
QDir dataPath {QStandardPaths::writableLocation (QStandardPaths::AppDataLocation)};
comments_location = dataPath.exists("comments.txt") ? dataPath.absoluteFilePath("comments.txt") : m_config->data_dir ().absoluteFilePath ("comments.txt");
- QFile file2 = {comments_location};
+ QFile file2 {comments_location};
QTextStream stream2(&file2);
if(file2.open (QIODevice::ReadOnly | QIODevice::Text)) {
while (!stream2.atEnd()) {
@@ -538,7 +538,7 @@ void LogQSO::on_addButton_clicked()
if (m_comments_temp != "") {
QString comments_location = m_config->writeable_data_dir().absoluteFilePath("comments.txt");
if(QFileInfo::exists(m_config->writeable_data_dir().absoluteFilePath("comments.txt"))) {
- QFile file2 = {comments_location};
+ QFile file2 {comments_location};
if (file2.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append)) {
QTextStream out(&file2);
out << m_comments_temp // append new line to comments.txt
@@ -555,7 +555,7 @@ void LogQSO::on_addButton_clicked()
"\"comments.txt\" from your log directory");
}
} else {
- QFile file2 = {comments_location};
+ QFile file2 {comments_location};
if (file2.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append)) {
QTextStream out(&file2);
out << ("\n" + m_comments_temp) // create file "comments.txt" and add a blank line
@@ -573,7 +573,7 @@ void LogQSO::on_addButton_clicked()
}
}
ui->comments->clear(); // clear the comments combo box and reload updated content
- QFile file2 = {comments_location};
+ QFile file2 {comments_location};
QTextStream stream2(&file2);
if(file2.open (QIODevice::ReadOnly | QIODevice::Text)) {
while (!stream2.atEnd()) {

View File

@@ -37,6 +37,7 @@ PATCHES=(
"${FILESDIR}/wsjtx-2.3.0-drop-docs.patch"
"${FILESDIR}/wsjtx-clang.patch"
"${FILESDIR}/wsjtx-fix-sound-dir.patch"
"${FILESDIR}/wsjtx-2.8.0-qt691.patch"
)
DOCS=( AUTHORS BUGS NEWS README THANKS )