Skip to content

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed
 

‎src/gui/main.cpp

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -388,22 +388,12 @@ int main(int argc, char *argv[])
388388
#endif
389389

390390
// 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
399394
QString appPath = qApp->applicationFilePath();
400395
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";
407397

408398
#ifdef Q_WS_WIN
409399
//for windows lets use plastique syle!

0 commit comments

Comments
 (0)
Please sign in to comment.