Commit 150f8877 authored by Eike Hein's avatar Eike Hein
Browse files

Fix adding langs more than once within the same session.

Summary: BUG:394455

Reviewers: davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D13101
parent b947ebf4
......@@ -103,12 +103,12 @@ ScrollViewKCM {
enabled: false
onClicked: {
var langs = [];
var langs = kcm.translationsModel.selectedLanguages.slice();
addLanguagesSheet.selectedLanguages.sort().forEach(function(index) {
langs.push(availableLanguagesModel.get(index).LanguageCode);
});
kcm.translationsModel.selectedLanguages = kcm.translationsModel.selectedLanguages.concat(langs);
kcm.translationsModel.selectedLanguages = langs;
addLanguagesSheet.sheetOpen = false;
}
......
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