+ fixes #0002306: Allow *.py files in the Customize/Macros/Macro dropdown

This commit is contained in:
wmayer
2015-10-26 09:42:27 +01:00
parent cbbf6a16c5
commit 4295d6f8bd

View File

@@ -64,7 +64,7 @@ DlgCustomActionsImp::DlgCustomActionsImp( QWidget* parent )
GetParameterGroupByPath("User parameter:BaseApp/Preferences/Macro")
->GetASCII("MacroPath",App::Application::getUserAppDataDir().c_str());
QDir d(QString::fromUtf8(cMacroPath.c_str()), QLatin1String("*.FCMacro"));
QDir d(QString::fromUtf8(cMacroPath.c_str()), QLatin1String("*.FCMacro *.py"));
actionMacros->insertItems(0, d.entryList());
QStringList labels; labels << tr("Icons") << tr("Macros");