Create the macro path if inexistant when saving a macro

This commit is contained in:
Yorik van Havre 2016-02-05 16:40:53 -02:00
parent 0be4c51440
commit dea9127ac2

View File

@ -316,6 +316,10 @@ void DlgMacroExecuteImp::on_createButton_clicked()
if (suffix != QLatin1String("fcmacro") && suffix != QLatin1String("py"))
fn += QLatin1String(".FCMacro");
QDir dir(this->macroPath);
// create the macroPath if inexistant
if (!dir.exists()) {
dir.mkpath(this->macroPath);
}
QFileInfo fi(dir, fn);
if (fi.exists() && fi.isFile())
{