提交 83c3a1ba 编写于 作者: B Boris Barbulovski 提交者: Michal Marek

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.
Reported-by: NJason Vas Dias <jason.vas.dias@gmail.com>
Signed-off-by: NBoris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
Tested-by: NRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: NMichal Marek <mmarek@suse.com>
上级 e039303f
...@@ -65,11 +65,19 @@ ConfigSettings::ConfigSettings() ...@@ -65,11 +65,19 @@ ConfigSettings::ConfigSettings()
QList<int> ConfigSettings::readSizes(const QString& key, bool *ok) QList<int> ConfigSettings::readSizes(const QString& key, bool *ok)
{ {
QList<int> result; QList<int> result;
QStringList entryList = value(key).toStringList();
QStringList::Iterator it;
for (it = entryList.begin(); it != entryList.end(); ++it) if (contains(key))
result.push_back((*it).toInt()); {
QStringList entryList = value(key).toStringList();
QStringList::Iterator it;
for (it = entryList.begin(); it != entryList.end(); ++it)
result.push_back((*it).toInt());
*ok = true;
}
else
*ok = false;
return result; return result;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册