diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2010-07-28 17:52:08 +0400 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2010-07-28 17:52:08 +0400 |
commit | 6422f37e1f5daa3be385dead983c8693452a8a65 (patch) | |
tree | e3860fa03579e54fd4003722b5b7315a4e75da17 /src | |
parent | 8aeda4d7f1779757e726b43dbf7e9e05cd1c9877 (diff) |
Fix appdata migration when no ~/Library/Application Support/Mumble exists.
Diffstat (limited to 'src')
-rw-r--r-- | src/mumble/Global.cpp | 1 |
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)) { |