Fix special chars in Windows usernames breaking the storage of commands.json (#3397)

This commit is contained in:
LosFarmosCTL
2021-12-11 12:56:19 +01:00
committed by GitHub
parent 83f4d07b2e
commit fd779387d5
2 changed files with 2 additions and 1 deletions
@@ -332,7 +332,7 @@ void CommandController::initialize(Settings &, Paths &paths)
// Initialize setting manager for commands.json
auto path = combinePath(paths.settingsDirectory, "commands.json");
this->sm_ = std::make_shared<pajlada::Settings::SettingManager>();
this->sm_->setPath(path.toStdString());
this->sm_->setPath(qPrintable(path));
this->sm_->setBackupEnabled(true);
this->sm_->setBackupSlots(9);