mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed compilation in MacOSX
This commit is contained in:
parent
3296032848
commit
ac67dc03c6
@ -1039,7 +1039,7 @@ void LibraryWindow::openComic()
|
||||
QString comicIdS = QString("%1").arg(comicId);
|
||||
QString libraryIdS = QString("%1").arg(libraryId);
|
||||
QString yacreaderPath = QDir::cleanPath(QCoreApplication::applicationDirPath()+"/../../../YACReader.app");
|
||||
if(QFileInfo(yacreaderPath).exists(yacreaderPath))
|
||||
if(QFileInfo(yacreaderPath).exists())
|
||||
QProcess::startDetached("open", QStringList() << "-n" << yacreaderPath << "--args" << path << comicIdS << libraryIdS ); /*<< page << bookmark1 << bookmark2 << bookmark3 << brightness << contrast << gamma*///,QStringList() << path);
|
||||
else
|
||||
QMessageBox::critical(this,tr("YACReader not found"),tr("YACReader not found, YACReader should be installed in the same folder as YACReaderLibrary."));
|
||||
|
Loading…
x
Reference in New Issue
Block a user