summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard/inputstring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'addon/doxywizard/inputstring.cpp')
-rw-r--r--addon/doxywizard/inputstring.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/addon/doxywizard/inputstring.cpp b/addon/doxywizard/inputstring.cpp
index ffe4398..03f7098 100644
--- a/addon/doxywizard/inputstring.cpp
+++ b/addon/doxywizard/inputstring.cpp
@@ -170,14 +170,17 @@ void InputString::init()
{
if (sm==StringFixed)
{
- int *itemIndex = m_values->find(str);
- if (itemIndex)
+ if (m_values)
{
- com->setCurrentItem(*itemIndex);
- }
- else
- {
- com->setCurrentItem(0);
+ int *itemIndex = m_values->find(str);
+ if (itemIndex)
+ {
+ com->setCurrentItem(*itemIndex);
+ }
+ else
+ {
+ com->setCurrentItem(0);
+ }
}
}
else