fixed 7z lib path

This commit is contained in:
Luis Ángel San Martín 2013-11-27 19:55:01 +01:00
parent 23d5abd329
commit 71543ff06f
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;