Skip to content

Commit

Permalink
Generally chop /bin for pkgDataDir on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro authored and nyalldawson committed Jul 31, 2019
1 parent 0a3ec26 commit ed4f185
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/qgsapplication.cpp
Expand Up @@ -452,7 +452,7 @@ void QgsApplication::setFileOpenEventReceiver( QObject *receiver )
void QgsApplication::setPrefixPath( const QString &prefixPath, bool useDefaultPaths )
{
ABISYM( mPrefixPath ) = prefixPath;
#if defined(_MSC_VER)
#if defined(Q_OS_WIN)
if ( ABISYM( mPrefixPath ).endsWith( "/bin" ) )
{
ABISYM( mPrefixPath ).chop( 4 );
Expand Down Expand Up @@ -732,12 +732,12 @@ QString QgsApplication::resolvePkgPath()
prefixPath = dir.absolutePath();
#else

#if defined(Q_OS_MACX) || defined(Q_OS_WIN)
#if defined(Q_OS_MACX)
prefixPath = appPath;
#elif defined(Q_OS_WIN)
prefixPath = appPath;
#if defined(_MSC_VER)
if ( prefixPath.endsWith( "/bin" ) )
prefixPath.chop( 4 );
#endif
#else
QDir dir( appPath );
// Fix for server which is one level deeper in /usr/lib/cgi-bin
Expand Down

0 comments on commit ed4f185

Please sign in to comment.