1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 03:53:23 +02:00

storagehelper: replace Qt's bugguy method by std

mkdir(".") seems to fail in /tmp but the std wins.

Change-Id: Ic6948255bc57c489d976bcbc3666958f96a7fca5
This commit is contained in:
Sébastien Blin 2022-07-15 12:05:53 -04:00
parent 3640456eec
commit 69002fb32a
No known key found for this signature in database
GPG key ID: C894BB01EEB2A9A9

View file

@ -292,7 +292,9 @@ setProfile(const QString& accountId, const api::profile::Info& profileInfo, cons
QFileInfo fileInfo(path);
auto dir = fileInfo.dir();
if (!dir.exists()) {
dir.mkdir(".");
if (!std::filesystem::create_directory(dir.path().toStdString())) {
qWarning() << "Cannot create " << dir.path().toStdString();
}
}
if (!lf.lock()) {
qWarning().noquote() << "Can't lock file for writing: " << file.fileName();