src/gui/util/qdesktopservices_mac.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   151      if (err)
   151      if (err)
   152         return QString();
   152         return QString();
   153 
   153 
   154     QString path = getFullPath(ref);
   154     QString path = getFullPath(ref);
   155 
   155 
   156     QString appName = QCoreApplication::applicationName();
   156     if (type == DataLocation || type == CacheLocation) {
   157     if (!appName.isEmpty() && (type == DataLocation || type == CacheLocation))
   157         if (QCoreApplication::organizationName().isEmpty() == false)
   158         path += QLatin1Char('/') + appName;
   158             path += QLatin1Char('/') + QCoreApplication::organizationName();
       
   159         if (QCoreApplication::applicationName().isEmpty() == false)
       
   160             path += QLatin1Char('/') + QCoreApplication::applicationName();
       
   161     }
   159 
   162 
   160     return path;
   163     return path;
   161 }
   164 }
   162 
   165 
   163 QString QDesktopServices::displayName(StandardLocation type)
   166 QString QDesktopServices::displayName(StandardLocation type)