+ fixes #0001238: Preferences: set temp files directory

This commit is contained in:
wmayer
2015-09-19 16:07:33 +02:00
parent 718b766737
commit ef203bc260
10 changed files with 44 additions and 10 deletions

View File

@@ -731,7 +731,7 @@ std::string Document::getTransientDirectoryName(const std::string& uuid, const s
std::stringstream s;
QCryptographicHash hash(QCryptographicHash::Sha1);
hash.addData(filename.c_str(), filename.size());
s << Base::FileInfo::getTempPath() << GetApplication().getExecutableName()
s << App::Application::getTempPath() << GetApplication().getExecutableName()
<< "_Doc_" << uuid
<< "_" << hash.result().toHex().left(6).constData()
<< "_" << QCoreApplication::applicationPid();