Trying to get the id of a dropped connection is a bad idea
Fix a crash
This commit is contained in:
@@ -20,7 +20,6 @@ AccountListModel::AccountListModel(QObject *parent)
|
|||||||
endInsertRows();
|
endInsertRows();
|
||||||
});
|
});
|
||||||
connect(&Controller::instance(), &Controller::connectionDropped, this, [=](Connection *conn) {
|
connect(&Controller::instance(), &Controller::connectionDropped, this, [=](Connection *conn) {
|
||||||
qDebug() << "Dropping connection" << conn->userId();
|
|
||||||
if (!conn) {
|
if (!conn) {
|
||||||
qDebug() << "Trying to remove null connection";
|
qDebug() << "Trying to remove null connection";
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user