diff options
author | Sky <git@bunnies.cc> | 2013-11-27 23:39:36 +0000 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2013-11-27 23:39:36 +0000 |
commit | 191e850cf14666302c3338d69073d1f417925a45 (patch) | |
tree | b1e7c2ddc985813b3b795a7eefd51d37a066fe59 /logic/lists | |
parent | d32cb1c95d5c1a50c322085cdfe4bf3f991431e7 (diff) | |
download | MultiMC-191e850cf14666302c3338d69073d1f417925a45.tar MultiMC-191e850cf14666302c3338d69073d1f417925a45.tar.gz MultiMC-191e850cf14666302c3338d69073d1f417925a45.tar.lz MultiMC-191e850cf14666302c3338d69073d1f417925a45.tar.xz MultiMC-191e850cf14666302c3338d69073d1f417925a45.zip |
Add support for "no default account"
Diffstat (limited to 'logic/lists')
-rw-r--r-- | logic/lists/MojangAccountList.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/logic/lists/MojangAccountList.cpp b/logic/lists/MojangAccountList.cpp index a30ef4ab..c6dce836 100644 --- a/logic/lists/MojangAccountList.cpp +++ b/logic/lists/MojangAccountList.cpp @@ -100,8 +100,10 @@ void MojangAccountList::setActiveAccount(const QString& username) else { for (MojangAccountPtr account : m_accounts) + { if (account->username() == username) m_activeAccount = username; + } } endResetModel(); onListChanged(); @@ -113,7 +115,9 @@ void MojangAccountList::onListChanged() if (m_autosave) // TODO: Alert the user if this fails. saveList(); - emit listChanged(); + + // TODO: stop this getting called from setActiveAccount + //emit listChanged(); } |