welcome view : update on currentChanged
- swap currentDefaultAccountChanged for currentChanged, to stay
more consistent with the rest.
Change-Id: I50097be6ef94dd8787d12e8acd0aeb2c008f301e
Reviewed-by: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
diff --git a/src/ringwelcomeview.cpp b/src/ringwelcomeview.cpp
index 7e673f5..0105a85 100644
--- a/src/ringwelcomeview.cpp
+++ b/src/ringwelcomeview.cpp
@@ -200,9 +200,9 @@
gtk_box_pack_start(GTK_BOX(box_main), priv->button_qrcode, TRUE, TRUE, 0);
priv->account_model_data_changed = QObject::connect(
- &AvailableAccountModel::instance(),
- &AvailableAccountModel::currentDefaultAccountChanged,
- [self] (Account* a)
+ AvailableAccountModel::instance().selectionModel(),
+ &QItemSelectionModel::currentChanged,
+ [self] ()
{
update_view(self);
});