Skip to content

Commit

Permalink
Merge pull request #48 from CODeRUS/patch-1
Browse files Browse the repository at this point in the history
Fixed update enabled layouts
  • Loading branch information
kimmoli committed Aug 21, 2015
2 parents b97d03c + 581814c commit 4e7f375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user-daemon/src/userdaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ void UserDaemon::setActiveLayout(const QString &value)
MGConfItem ci("/sailfish/text_input/active_layout");
ci.set(value);

QStringList tohlayout("harbour-tohkbd2.qml");
QString tohlayout("harbour-tohkbd2.qml");
MGConfItem el("/sailfish/text_input/enabled_layouts");
QStringList list = el.value().toStringList();
if (value.equals(tohlayout)) {
if (value.compare(tohlayout) == 0) {
if (!list.contains(tohlayout)) {
list.append(tohlayout);
el.set(list);
Expand Down

0 comments on commit 4e7f375

Please sign in to comment.