mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 18:10:52 +07:00
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: Jason Vas Dias <jason.vas.dias@gmail.com> Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Michal Marek <mmarek@suse.com>
This commit is contained in:
parent
e039303ff7
commit
83c3a1bad2
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user