Mercurial > hg > svcore
comparison base/ResourceFinder.cpp @ 708:9a0272c2d596 sv_v1.9
Avoid spurious %2 in directory path! This path is still poor, but better than it was
author | Chris Cannam |
---|---|
date | Mon, 10 Oct 2011 16:47:52 +0100 |
parents | 66de0ad10bb3 |
children | 66c3f4e060e9 |
comparison
equal
deleted
inserted
replaced
707:76ca85d98b92 | 708:9a0272c2d596 |
---|---|
100 home = QString("%1%2").arg(homedrive).arg(homepath); | 100 home = QString("%1%2").arg(homedrive).arg(homepath); |
101 } else { | 101 } else { |
102 home = QDir::home().absolutePath(); | 102 home = QDir::home().absolutePath(); |
103 } | 103 } |
104 if (home == "") return ""; | 104 if (home == "") return ""; |
105 return QString("%1/.%2").arg(qApp->applicationName()); //!!! wrong | 105 return QString("%1/.%2").arg(home).arg(qApp->applicationName()); //!!! wrong |
106 #else | 106 #else |
107 char *home = getenv("HOME"); | 107 char *home = getenv("HOME"); |
108 if (!home || !home[0]) return ""; | 108 if (!home || !home[0]) return ""; |
109 #ifdef Q_OS_MAC | 109 #ifdef Q_OS_MAC |
110 return QString("%1/Library/Application Support/%2/%3") | 110 return QString("%1/Library/Application Support/%2/%3") |