diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2008-03-07 19:55:05 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2008-03-07 19:55:05 (GMT) |
commit | b43cd6311a712c01c2c8297fa00809730e504d70 (patch) | |
tree | 74a4cb6c6c83c3b41a92ba1da8df0235abd2dafe /addon/doxywizard/inputstring.cpp | |
parent | 95fd5f1c991ee66f7122801276a133ebfce86aaa (diff) | |
download | Doxygen-b43cd6311a712c01c2c8297fa00809730e504d70.zip Doxygen-b43cd6311a712c01c2c8297fa00809730e504d70.tar.gz Doxygen-b43cd6311a712c01c2c8297fa00809730e504d70.tar.bz2 |
Release-1.5.5-20080307
Diffstat (limited to 'addon/doxywizard/inputstring.cpp')
-rw-r--r-- | addon/doxywizard/inputstring.cpp | 17 |
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 |