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.
Unified · Split
| @@ -65,11 +65,19 @@ ConfigSettings::ConfigSettings() · 64 unmodified lines | ||
| 65 | 65 | QList<int> ConfigSettings::readSizes(const QString& key, bool *ok) |
| 66 | 66 | { |
| 67 | 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) | |
| 72 | − result.push_back((*it).toInt()); | |
| 69 | + if (contains(key)) | |
| 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 | 82 | return result; |
| 75 | 83 | } |