Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
set correct prefixPath()
  • Loading branch information
mbernasocchi committed Sep 10, 2013
1 parent e87f79d commit e703bdf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgsapplication.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit e703bdf

Please sign in to comment.