|
a/src/qtgui/confgui/confguiindex.cpp |
|
b/src/qtgui/confgui/confguiindex.cpp |
|
... |
|
... |
293 |
SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)),
|
293 |
SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)),
|
294 |
this,
|
294 |
this,
|
295 |
SLOT(subDirChanged(QListWidgetItem *, QListWidgetItem *)));
|
295 |
SLOT(subDirChanged(QListWidgetItem *, QListWidgetItem *)));
|
296 |
connect(m_subdirs, SIGNAL(entryDeleted(QString)),
|
296 |
connect(m_subdirs, SIGNAL(entryDeleted(QString)),
|
297 |
this, SLOT(subDirDeleted(QString)));
|
297 |
this, SLOT(subDirDeleted(QString)));
|
|
|
298 |
|
|
|
299 |
// We only retrieve the subkeys from the user's config (shallow),
|
|
|
300 |
// no use to confuse the user by showing the subtrees which are
|
|
|
301 |
// customized in the system config like .thunderbird or
|
|
|
302 |
// .purple. This doesn't prevent them to add and customize them
|
|
|
303 |
// further.
|
298 |
list<string> allkeydirs = config->getSubKeys();
|
304 |
list<string> allkeydirs = config->getSubKeys(true);
|
|
|
305 |
|
299 |
QStringList qls;
|
306 |
QStringList qls;
|
300 |
for (list<string>::const_iterator it = allkeydirs.begin();
|
307 |
for (list<string>::const_iterator it = allkeydirs.begin();
|
301 |
it != allkeydirs.end(); it++) {
|
308 |
it != allkeydirs.end(); it++) {
|
302 |
qls.push_back(QString::fromUtf8(it->c_str()));
|
309 |
qls.push_back(QString::fromUtf8(it->c_str()));
|
303 |
}
|
310 |
}
|