File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -388,22 +388,12 @@ int main(int argc, char *argv[])
388
388
#endif
389
389
390
390
// Check to see if qgis was started from the source directory.
391
- // This is done by looking for Makefile in the directory where qgis was
392
- // started from. If running from the src directory, exit gracefully
393
-
394
- // Get the application path. This method is required to support qt 3.1.2
395
- // which does not support the applicationFilePath and applicationDirPath
396
- // functions. We assume that OS X and Win32 systems will be using at least
397
- // Qt 3.2 and therefore support the required functions.
398
- #if defined(Q_OS_MACX) || defined(WIN32)
391
+ // This is done by looking for a particular file in the directory
392
+ // where qgis was started from. If running from the src directory,
393
+ // exit gracefully
399
394
QString appPath = qApp->applicationFilePath ();
400
395
QString appDir = qApp->applicationDirPath ();
401
- QString testFile = " libqgis.la" ;
402
- #else
403
- QString appPath = argv[0 ];
404
- QString appDir = appPath.left (appPath.findRev (" /" ));
405
- QString testFile = " lt-qgis" ;
406
- #endif
396
+ QString testFile = " libqgis_gui.la" ;
407
397
408
398
#ifdef Q_WS_WIN
409
399
// for windows lets use plastique syle!
You can’t perform that action at this time.
0 commit comments