Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2010-07-28 17:52:08 +0400
committerMikkel Krautz <mikkel@krautz.dk>2010-07-28 17:52:08 +0400
commit6422f37e1f5daa3be385dead983c8693452a8a65 (patch)
treee3860fa03579e54fd4003722b5b7315a4e75da17 /src
parent8aeda4d7f1779757e726b43dbf7e9e05cd1c9877 (diff)
Fix appdata migration when no ~/Library/Application Support/Mumble exists.
Diffstat (limited to 'src')
-rw-r--r--src/mumble/Global.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mumble/Global.cpp b/src/mumble/Global.cpp
index 465df3392..94a7c9dfa 100644
--- a/src/mumble/Global.cpp
+++ b/src/mumble/Global.cpp
@@ -39,6 +39,7 @@ static void migrateDataDir() {
QString linksTo = QFile::readLink(olddir);
if (!QFile::exists(newdir) && QFile::exists(olddir) && linksTo.isEmpty()) {
QDir d;
+ d.mkpath(newdir + QLatin1String("/.."));
if (d.rename(olddir, newdir)) {
if (d.cd(QDir::homePath() + QLatin1String("/Library/Preferences"))) {
if (QFile::link(d.relativeFilePath(newdir), olddir)) {