From 4295d6f8bd3fe36d5aeebc8f981feb0baf2813f6 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 26 Oct 2015 09:42:27 +0100 Subject: [PATCH] + fixes #0002306: Allow *.py files in the Customize/Macros/Macro dropdown --- src/Gui/DlgActionsImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/DlgActionsImp.cpp b/src/Gui/DlgActionsImp.cpp index 1f88759b69..cec41036c2 100644 --- a/src/Gui/DlgActionsImp.cpp +++ b/src/Gui/DlgActionsImp.cpp @@ -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");