mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
fixed 7z lib path
This commit is contained in:
parent
23d5abd329
commit
71543ff06f
@ -67,7 +67,7 @@ void LibraryCreator::run()
|
||||
stopRunning = false;
|
||||
|
||||
//check for 7z lib
|
||||
QLibrary *sevenzLib = new QLibrary("./utils/7z");
|
||||
QLibrary *sevenzLib = new QLibrary(QApplication::applicationDirPath()+"/utils/7z");
|
||||
if(!sevenzLib->load())
|
||||
{
|
||||
QLOG_ERROR() << "Loading 7z.dll : " + sevenzLib->errorString() << endl;
|
||||
|
@ -117,7 +117,7 @@ bool CompressedArchive::loadFunctions()
|
||||
// fix1: try to load "7z.so"
|
||||
// fix2: rename 7z.so to 7z.dylib
|
||||
if(sevenzLib == 0)
|
||||
sevenzLib = new QLibrary("./utils/7z");
|
||||
sevenzLib = new QLibrary(QApplication::applicationDirPath()+"/utils/7z");
|
||||
if(!sevenzLib->load())
|
||||
{
|
||||
qDebug() << "Loading 7z.dll : " + sevenzLib->errorString() << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user