From 2f86eca2400593ce6ed6c1f7b2cd46ce720543a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 19 Jan 2024 16:45:32 +0100 Subject: [PATCH] Fix translation missing from YACReader when opening from YACReaderLibrary --- YACReaderLibrary/library_comic_opener.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/YACReaderLibrary/library_comic_opener.cpp b/YACReaderLibrary/library_comic_opener.cpp index 0a4d3a02..638cf9a1 100644 --- a/YACReaderLibrary/library_comic_opener.cpp +++ b/YACReaderLibrary/library_comic_opener.cpp @@ -34,8 +34,9 @@ bool YACReader::openComic(const ComicDB &comic, #endif #ifdef Q_OS_WIN + QString executablePath = QDir::cleanPath(QCoreApplication::applicationDirPath() + "/YACReader.exe"); QStringList parameters { path, QString("--comicId=%1").arg(comic.id), QString("--libraryId=%1").arg(libraryId), labelParam }; - yacreaderFound = QProcess::startDetached(QDir::cleanPath(QCoreApplication::applicationDirPath() + "/YACReader.exe"), parameters); + yacreaderFound = QProcess::startDetached(executablePath, parameters, QCoreApplication::applicationDirPath()); #endif #if defined Q_OS_UNIX && !defined Q_OS_MACOS