diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2016-11-30 23:57:55 +0100 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-12-11 21:40:54 +0100 |
commit | 83c3a1bad224189f22ca2c1955337c3478bd3ab2 (patch) | |
tree | 1ba6588f0ea3b6e9d2c87b734169a4ae574c89c5 /scripts/kconfig/qconf.cc | |
parent | xconfig: fix 'Show Debug' functionality (diff) | |
download | linux-83c3a1bad224189f22ca2c1955337c3478bd3ab2.tar.xz linux-83c3a1bad224189f22ca2c1955337c3478bd3ab2.zip |
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>
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r-- | scripts/kconfig/qconf.cc | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 45e3169e8ee1..ae6c72546411 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -65,11 +65,19 @@ ConfigSettings::ConfigSettings() QList<int> ConfigSettings::readSizes(const QString& key, bool *ok) { QList<int> result; - QStringList entryList = value(key).toStringList(); - QStringList::Iterator it; - for (it = entryList.begin(); it != entryList.end(); ++it) - result.push_back((*it).toInt()); + if (contains(key)) + { + 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; } |