Commit 4065c721 authored by Jeremy Whiting's avatar Jeremy Whiting
Browse files

Config: Fix a couple of bugs.

Adjust the vocabulary title column after populating the column
of titles.
Refresh the vocabulary list whenever the configuration changes
so the list will reflect the vocabularies for the currently
selected language.
parent cfbdda1c
Pipeline #214110 passed with stage
in 41 seconds
......@@ -38,11 +38,13 @@ VocabSettings::VocabSettings(QWidget *parent)
connect(lviewVocab, &QTreeWidget::currentItemChanged, this, &VocabSettings::slotSelectionChanged);
connect(KanagramSettings::self(), &KCoreConfigSkeleton::configChanged,
this, &VocabSettings::refreshView);
connect(btnDownloadNew, &KNSWidgets::Button::dialogFinished, this, [this] (const QList<KNSCore::Entry> &changedEntries) {
if (!changedEntries.isEmpty()) {
......@@ -70,6 +72,8 @@ void VocabSettings::loadView()
item->setText( 1, m_commentList[i] );
m_itemMap[item] = i;
void VocabSettings::refreshView()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment