summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-04-22 09:29:20 (GMT)
committerGitHub <noreply@github.com>2018-04-22 09:29:20 (GMT)
commite9320ddfff805590a5c64fb9f77be2220e746e11 (patch)
tree2220f681ca5a16622c8e8e260b394f2b0831af29
parent3cf47f9adda4b72a61910869de80f7e5606d8099 (diff)
parent8bf975ea2861def50f9b7d4cca0fb4002c991ec0 (diff)
downloadDoxygen-e9320ddfff805590a5c64fb9f77be2220e746e11.zip
Doxygen-e9320ddfff805590a5c64fb9f77be2220e746e11.tar.gz
Doxygen-e9320ddfff805590a5c64fb9f77be2220e746e11.tar.bz2
Merge pull request #670 from albert-github/feature/doxywizard_788873
Bug 788873 - Disabled controls when `HAVE_DOT` is already set to `YES`
-rw-r--r--addon/doxywizard/wizard.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/addon/doxywizard/wizard.cpp b/addon/doxywizard/wizard.cpp
index b320aaa..ae8fa61 100644
--- a/addon/doxywizard/wizard.cpp
+++ b/addon/doxywizard/wizard.cpp
@@ -1210,18 +1210,23 @@ void Step4::setCallerGraphEnabled(int state)
void Step4::init()
{
+ int id = 0;
if (getBoolOption(m_modelData,STR_HAVE_DOT))
{
m_diagramModeGroup->button(2)->setChecked(true); // Dot
+ id = 2;
}
else if (getBoolOption(m_modelData,STR_CLASS_DIAGRAMS))
{
m_diagramModeGroup->button(1)->setChecked(true); // Builtin diagrams
+ id = 1;
}
else
{
m_diagramModeGroup->button(0)->setChecked(true); // no diagrams
+ id = 0;
}
+ m_dotGroup->setEnabled(id==2);
m_dotClass->setChecked(getBoolOption(m_modelData,STR_CLASS_GRAPH));
m_dotCollaboration->setChecked(getBoolOption(m_modelData,STR_COLLABORATION_GRAPH));
m_dotInheritance->setChecked(getBoolOption(m_modelData,STR_GRAPHICAL_HIERARCHY));