From a1b37eb9cb954180d6bed375d68d356d828fb27e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 3 Oct 2017 18:52:14 +0200 Subject: [PATCH] Fixed comic file path hidden by local declaration in macos. This fixes the comic not found error message. --- YACReaderLibrary/library_window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index e59c1363..0c264cdd 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -1786,9 +1786,9 @@ void LibraryWindow::openComic() possiblePaths.append(QDir::cleanPath(QCoreApplication::applicationDirPath()+"/../../../")); possiblePaths.append(QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation)); - for(auto && path: possiblePaths) + for(auto && ypath: possiblePaths) { - QString yacreaderPath = QDir::cleanPath(path + "/YACReader.app"); + QString yacreaderPath = QDir::cleanPath(ypath + "/YACReader.app"); if(QFileInfo(yacreaderPath).exists()) { yacreaderFound = true;