From f888dab1063d09321de50c9b9d6f97431ac66297 Mon Sep 17 00:00:00 2001 From: ElTh0r0 Date: Wed, 26 Apr 2023 16:28:15 +0200 Subject: [PATCH] Add Qt translations on Windows. Finally fix upload. --- .appveyor.yml | 2 ++ application/upload.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index c0fae9b..25ad830 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -72,6 +72,8 @@ build_script: windeployqt --release --no-translations --no-opengl-sw InyokaEdit\InyokaEdit.exe + lconvert -o InyokaEdit\translations\qt_de.qm %QTDIR%\translations\qtbase_de.qm %QTDIR%\translations\qtwebengine_de.qm + copy COPYING InyokaEdit\ copy application\3rdparty\miniz\LICENSE InyokaEdit\Miniz_License.txt diff --git a/application/upload.cpp b/application/upload.cpp index 45c06df..b0cfd89 100644 --- a/application/upload.cpp +++ b/application/upload.cpp @@ -295,7 +295,8 @@ void Upload::requestUpload() { void Upload::getUploadReply(const QString &sNWReply) { m_State = RECUPLOAD; - if (sNWReply.isEmpty()) { + if (sNWReply.isEmpty() || + sNWReply.contains(QStringLiteral("Die Seite wurde bearbeitet."))) { qDebug() << "UPLOAD SUCCESSFUL!"; QMessageBox::information(m_pParent, QStringLiteral("Upload"), tr("Upload successful!"));