lrc: adapt to API changes

Tuleap: #44
Change-Id: I0b005b7019d204e049a280819aac5f29558cafea
diff --git a/src/AccGeneralVC.mm b/src/AccGeneralVC.mm
index e1adf4f..18a7049 100644
--- a/src/AccGeneralVC.mm
+++ b/src/AccGeneralVC.mm
@@ -86,7 +86,7 @@
     [passwordTextField setTag:PASSWORD_TAG];
     [userAgentTextField setTag:USERAGENT_TAG];
 
-    QObject::connect(AccountModel::instance()->selectionModel(),
+    QObject::connect(AccountModel::instance().selectionModel(),
                      &QItemSelectionModel::currentChanged,
                      [=](const QModelIndex &current, const QModelIndex &previous) {
                          if(!current.isValid())
@@ -97,8 +97,8 @@
 
 - (Account*) currentAccount
 {
-    auto accIdx = AccountModel::instance()->selectionModel()->currentIndex();
-    return AccountModel::instance()->getAccountByModelIndex(accIdx);
+    auto accIdx = AccountModel::instance().selectionModel()->currentIndex();
+    return AccountModel::instance().getAccountByModelIndex(accIdx);
 }
 
 - (IBAction)toggleUpnp:(NSButton *)sender {