mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
media-radio/wsjtx_improved: Fix build with Qt-6.9.1
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
40
media-radio/wsjtx_improved/files/wsjtx-2.8.0-qt691.patch
Normal file
40
media-radio/wsjtx_improved/files/wsjtx-2.8.0-qt691.patch
Normal 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()) {
|
||||
@@ -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 )
|
||||
Reference in New Issue
Block a user