mainview: fix crash when deleting account

Fix the deletion crash issue and remove redundant account changed
signals.

Gitlab: #17
Change-Id: I1858fa051fd5171e1261dbc35d361631dc3ea01d
diff --git a/src/accountadapter.cpp b/src/accountadapter.cpp
index 9038999..2358ece 100644
--- a/src/accountadapter.cpp
+++ b/src/accountadapter.cpp
@@ -335,10 +335,10 @@
 {
     LRCInstance::setSelectedAccountId(accountId);
 
-    backToWelcomePage();
-
     connectAccount(accountId);
     emit accountSignalsReconnect(accountId);
+
+    backToWelcomePage();
 }
 
 void