diff options
| author | Boris Barbulovski <bbarbulovski@gmail.com> | 2016-11-30 17:57:55 -0500 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.com> | 2016-12-11 15:40:54 -0500 |
| commit | 83c3a1bad224189f22ca2c1955337c3478bd3ab2 (patch) | |
| tree | 1ba6588f0ea3b6e9d2c87b734169a4ae574c89c5 /scripts | |
| parent | e039303ff71a0fd89d009a24b1eab230ce907288 (diff) | |
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')
| -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() | |||
| 65 | QList<int> ConfigSettings::readSizes(const QString& key, bool *ok) | 65 | QList<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 | } |
