Add error dialog.

Shows login error.
This commit is contained in:
Black Hat
2018-09-20 08:23:42 +08:00
parent 459920657c
commit 03c19c4f60
2 changed files with 13 additions and 13 deletions

View File

@@ -73,6 +73,9 @@ void Controller::loginWithCredentials(QString serverAddr, QString user,
account.sync();
addConnection(m_connection);
});
connect(m_connection, &Connection::loginError, [=] (QString error, QByteArray detail) {
emit errorOccured(error);
});
}
}