Trying to get the id of a dropped connection is a bad idea

Fix a crash
This commit is contained in:
Carl Schwan
2021-05-08 01:40:58 +02:00
parent 873ab328dc
commit af409aa9a2

View File

@@ -20,7 +20,6 @@ AccountListModel::AccountListModel(QObject *parent)
endInsertRows();
});
connect(&Controller::instance(), &Controller::connectionDropped, this, [=](Connection *conn) {
qDebug() << "Dropping connection" << conn->userId();
if (!conn) {
qDebug() << "Trying to remove null connection";
return;