From: <sv...@va...> - 2010-03-11 19:42:53
|
Author: cerion Date: 2010-03-11 19:42:35 +0000 (Thu, 11 Mar 2010) New Revision: 490 Log: fix bug in fileCheck(): init QFileInfo _after_ we've found the exec via $PATH. Modified: branches/valkyrie_qt4port/utils/vk_utils.cpp Modified: branches/valkyrie_qt4port/utils/vk_utils.cpp =================================================================== --- branches/valkyrie_qt4port/utils/vk_utils.cpp 2010-03-11 13:52:33 UTC (rev 489) +++ branches/valkyrie_qt4port/utils/vk_utils.cpp 2010-03-11 19:42:35 UTC (rev 490) @@ -364,7 +364,7 @@ { *err_val = PARSED_OK; QString absPath = QString::null; - QFileInfo fi( fpath ); + QFileInfo fi; // check exists: if so, return absolute path if ( fpath.isEmpty() ) { @@ -379,7 +379,9 @@ *err_val = PERROR_BADFILE; goto bye; } - + + fi.setFile( absPath ); + // check this is really a file if ( !fi.isFile() ) { *err_val = PERROR_BADFILE; |