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:
parent
3640456eec
commit
69002fb32a
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue