mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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(QDir::cleanPath(QCoreApplication::applicationDirPath()+"/../../../"));
|
||||||
possiblePaths.append(QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation));
|
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())
|
if(QFileInfo(yacreaderPath).exists())
|
||||||
{
|
{
|
||||||
yacreaderFound = true;
|
yacreaderFound = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user