From ac67dc03c600c5fd8bf1f9ef7b91167029fa52c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 4 Dec 2013 14:49:39 +0100 Subject: [PATCH] fixed compilation in MacOSX --- YACReaderLibrary/library_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 3e0126ae..e0bbc643 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -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."));