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
65QList<int> ConfigSettings::readSizes(const QString& key, bool *ok)65QList<int> ConfigSettings::readSizes(const QString& key, bool *ok)
66{66{
67 QList<int> result;67 QList<int> result;
68 QStringList entryList = value(key).toStringList();
69 QStringList::Iterator it;
70 68
71 for (it = entryList.begin(); it != entryList.end(); ++it)69 if (contains(key))
72 result.push_back((*it).toInt());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;
73 81
74 return result;82 return result;
75}83}