Skip to content
Permalink
Browse files

set correct prefixPath()

  • Loading branch information
mbernasocchi committed Sep 9, 2013
1 parent e87f79d commit e703bdf08c59d04ed5ea733dbd1a9c576b7ce58f
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgsapplication.cpp
@@ -139,6 +139,12 @@ void QgsApplication::init( QString customConfigPath )
{
#if defined(Q_WS_MACX) || defined(Q_WS_WIN32) || defined(WIN32)
setPrefixPath( applicationDirPath(), true );
#elif defined(ANDROID)
// this is "/data/data/org.qgis.qgis" in android
QDir myDir( QDir::homePath() );
myDir.cdUp();
QString myPrefix = myDir.absolutePath();
setPrefixPath( myPrefix, true );
#else
QDir myDir( applicationDirPath() );
myDir.cdUp();

0 comments on commit e703bdf

Please sign in to comment.
You can’t perform that action at this time.