Skip to content

Commit

Permalink
Create the macro path if inexistant when saving a macro
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Feb 5, 2016
1 parent 0be4c51 commit dea9127
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gui/DlgMacroExecuteImp.cpp
Expand Up @@ -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())
{
Expand Down

0 comments on commit dea9127

Please sign in to comment.