Fix Geoip database embedding

Fix Geoip path issue on Win32
This commit is contained in:
Christophe Dumez
2010-05-30 15:19:40 +00:00
parent 4eb8be372e
commit cfc4e7c8f6
4 changed files with 22 additions and 14 deletions

View File

@@ -74,6 +74,8 @@ QString misc::QDesktopServicesDataLocation() {
result = QString::fromWCharArray(path);
if (!QCoreApplication::applicationName().isEmpty())
result = result + QLatin1String("\\") + qApp->applicationName();
if(!result.endsWith("\\"))
result += "\\";
return result;
#else
#ifdef Q_WS_MAC