Commit 92370b40 authored by Patrick José Pereira's avatar Patrick José Pereira

PlanMasterController: Fix deprecated QString::sprintf

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 17c3d097
......@@ -403,7 +403,7 @@ void PlanMasterController::loadFromFile(const QString& filename)
}
if(success){
_currentPlanFile.sprintf("%s/%s.%s", fileInfo.path().toLocal8Bit().data(), fileInfo.completeBaseName().toLocal8Bit().data(), AppSettings::planFileExtension);
_currentPlanFile = QString::asprintf("%s/%s.%s", fileInfo.path().toLocal8Bit().data(), fileInfo.completeBaseName().toLocal8Bit().data(), AppSettings::planFileExtension);
} else {
_currentPlanFile.clear();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment