mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
a?adido el c?digo que permite que se abra YACReader de forma adecuada desde YACReaderLibrary en MacOSX
This commit is contained in:
parent
1fd8282e9c
commit
0a7b6a8592
@ -824,7 +824,14 @@ void LibraryWindow::openComic()
|
||||
{
|
||||
QString path = currentPath() + dmCV->getComicPath(comicView->currentIndex());
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
|
||||
QProcess::startDetached("open", QStringList() << "-n" << QDir::cleanPath(QCoreApplication::applicationDirPath()+"/../../../YACReader.app") << "--args" << path);//,QStringList() << path);
|
||||
//Comic is readed
|
||||
#else
|
||||
|
||||
QProcess::startDetached(QDir::cleanPath(QCoreApplication::applicationDirPath())+"/YACReader",QStringList() << path);
|
||||
#endif
|
||||
//Comic is readed
|
||||
setCurrentComicReaded();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user