diff options
Diffstat (limited to 'logic/lists/MojangAccountList.cpp')
-rw-r--r-- | logic/lists/MojangAccountList.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/logic/lists/MojangAccountList.cpp b/logic/lists/MojangAccountList.cpp index c6dce836..ec1937ad 100644 --- a/logic/lists/MojangAccountList.cpp +++ b/logic/lists/MojangAccountList.cpp @@ -106,7 +106,7 @@ void MojangAccountList::setActiveAccount(const QString& username) } } endResetModel(); - onListChanged(); + onActiveChanged(); } @@ -116,8 +116,15 @@ void MojangAccountList::onListChanged() // TODO: Alert the user if this fails. saveList(); - // TODO: stop this getting called from setActiveAccount - //emit listChanged(); + emit listChanged(); +} + +void MojangAccountList::onActiveChanged() +{ + if (m_autosave) + saveList(); + + emit activeAccountChanged(); } |