create account: link to new lrc
Change-Id: I08b578cc29f0fc8f664763b3aeecb8406a6aa328
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
diff --git a/src/ChooseAccountVC.mm b/src/ChooseAccountVC.mm
index 252605b..040c8ae 100644
--- a/src/ChooseAccountVC.mm
+++ b/src/ChooseAccountVC.mm
@@ -180,7 +180,7 @@
QByteArray ba = QByteArray::fromStdString(account.profileInfo.avatar);
- QVariant photo = GlobalInstances::pixmapManipulator().personPhoto(ba);
+ QVariant photo = GlobalInstances::pixmapManipulator().personPhoto(ba, nil);
[profileImage setImage:QtMac::toNSImage(qvariant_cast<QPixmap>(photo))];
}
@catch (NSException *ex) {
@@ -234,6 +234,7 @@
}
[self updateMenu];
[self setPopUpButtonSelection];
+ [self updatePhoto];
}
-(void) setPopUpButtonSelection {
@@ -265,6 +266,7 @@
auto& account = accMdl_->getAccountInfo(accList[row]);
[accountSelectionManager_ setSavedAccount:account];
[delegate selectAccount:account];
+ [self updatePhoto];
}
#pragma mark - NSMenuDelegate