History

xconfig: fix missing suboption and help panels on first run

qconfig initial slider sizes fix. On first `make xconfig`, suboption and help panels were hidden. Now we properly detect the first run, and show those panels.

Boris Barbulovski committed 9 years ago

Commit 83c3a1b1 parent e0393031 file · +12 −4Browse files

Unified · Split

scripts/kconfig/qconf.cc+12−4
@@ -65,11 +65,19 @@ ConfigSettings::ConfigSettings() · 64 unmodified lines
6565 QList<int> ConfigSettings::readSizes(const QString& key, bool *ok)
6666 {
6767 QList<int> result;
68− QStringList entryList = value(key).toStringList();
69− QStringList::Iterator it;
7068
71− for (it = entryList.begin(); it != entryList.end(); ++it)
72− result.push_back((*it).toInt());
69+ if (contains(key))
70+ {
71+ QStringList entryList = value(key).toStringList();
72+ QStringList::Iterator it;
73+
74+ for (it = entryList.begin(); it != entryList.end(); ++it)
75+ result.push_back((*it).toInt());
76+
77+ *ok = true;
78+ }
79+ else
80+ *ok = false;
7381
7482 return result;
7583 }