From 5d2b22ca286207775ddcbeabef7c5850fda32203 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 31 Aug 2017 23:01:34 +0200 Subject: [PATCH] improve whitespaces --- src/Gui/Command.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Gui/Command.cpp b/src/Gui/Command.cpp index f2df41be00..e239d1fc5b 100644 --- a/src/Gui/Command.cpp +++ b/src/Gui/Command.cpp @@ -743,18 +743,18 @@ void MacroCommand::activated(int iMsg) Q_UNUSED(iMsg); QDir d; - if(!systemMacro) { - std::string cMacroPath; - - cMacroPath = App::GetApplication().GetParameterGroupByPath + if (!systemMacro) { + std::string cMacroPath; + + cMacroPath = App::GetApplication().GetParameterGroupByPath ("User parameter:BaseApp/Preferences/Macro")->GetASCII("MacroPath", App::Application::getUserMacroDir().c_str()); - - d = QDir(QString::fromUtf8(cMacroPath.c_str())); + + d = QDir(QString::fromUtf8(cMacroPath.c_str())); } else { - QString dirstr = QString::fromUtf8(App::GetApplication().getHomePath()) + QString::fromUtf8("Macro"); - d = QDir(dirstr); + QString dirstr = QString::fromUtf8(App::GetApplication().getHomePath()) + QString::fromUtf8("Macro"); + d = QDir(dirstr); } QFileInfo fi(d, QString::fromUtf8(sScriptName));