Fixed comic file path hidden by local declaration in macos. This fixes the comic not found error message.

This commit is contained in:
Luis Ángel San Martín 2017-10-03 18:52:14 +02:00
parent 82ad89b39e
commit a1b37eb9cb

View File

@ -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;