<table><tr><td style="">hein added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15115">View Revision</a></tr></table><br /><div><div><p>This makes sense. In theory this is done by this code:</p>

<p>`    connect(m_selectedTranslationsModel, &SelectedTranslationsModel::selectedLanguagesChanged,</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">m_availableTranslationsModel, &AvailableTranslationsModel::setSelectedLanguages);`</pre></div>

<p>However <tt style="background: #ebebeb; font-size: 13px;">SelectedTranslationsModel</tt> only emits the signal when the list has changed, and an initial call to <tt style="background: #ebebeb; font-size: 13px;">setSelectedLanguages</tt> with both the member and the parameter being empty doesn't cause an emit.</p>

<p>This means your patch can be simplified though. Only the <tt style="background: #ebebeb; font-size: 13px;">Translations::load()</tt> needs to call <tt style="background: #ebebeb; font-size: 13px;">AvailableTranslationsModel::setSelectedLanguages</tt> to seed things, <tt style="background: #ebebeb; font-size: 13px;">save</tt> and <tt style="background: #ebebeb; font-size: 13px;">defaults</tt> are covered by the signal-slot connection keeping the models in sync.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15115">https://phabricator.kde.org/D15115</a></div></div><br /><div><strong>To: </strong>sitter, hein<br /><strong>Cc: </strong>ngraham, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>