mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Fixed comic file path hidden by local declaration in macos. This fixes the comic not found error message.
This commit is contained in:
parent
82ad89b39e
commit
a1b37eb9cb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user