Skip to content

Commit

Permalink
+ when checking for custom toolbars do not auto-create sub-groups in …
Browse files Browse the repository at this point in the history
…user parameters
  • Loading branch information
wwmayer committed Dec 6, 2014
1 parent c931bee commit ec4a496
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Gui/DlgToolbarsImp.cpp
Expand Up @@ -224,7 +224,12 @@ void DlgCustomToolbars::importCustomToolbars(const QByteArray& name)
{
ParameterGrp::handle hGrp = App::GetApplication().GetUserParameter().GetGroup("BaseApp")->GetGroup("Workbench");
const char* subgroup = (type == Toolbar ? "Toolbar" : "Toolboxbar");
hGrp = hGrp->GetGroup(name.constData())->GetGroup(subgroup);
if (!hGrp->HasGroup(name.constData()))
return;
hGrp = hGrp->GetGroup(name.constData());
if (!hGrp->HasGroup(subgroup))
return;
hGrp = hGrp->GetGroup(subgroup);

std::vector<Base::Reference<ParameterGrp> > hGrps = hGrp->GetGroups();
CommandManager& rMgr = Application::Instance->commandManager();
Expand Down

0 comments on commit ec4a496

Please sign in to comment.