Create the macro path if inexistant when saving a macro
This commit is contained in:
parent
0be4c51440
commit
dea9127ac2
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user