deleteLater() on failure
This commit is contained in:
parent
a691f5de3c
commit
c4ab063aec
@ -955,8 +955,9 @@ void
|
||||
InputBar::toggleIgnore(const QString &user, const bool ignored)
|
||||
{
|
||||
UserProfile *profile = new UserProfile(QString(), user, TimelineViewManager::instance());
|
||||
connect(profile, &UserProfile::failedToFetchProfile, [user] {
|
||||
connect(profile, &UserProfile::failedToFetchProfile, [user, profile] {
|
||||
MainWindow::instance()->showNotification(tr("Failed to fetch user %1").arg(user));
|
||||
profile->deleteLater();
|
||||
});
|
||||
|
||||
connect(
|
||||
|
Loading…
Reference in New Issue
Block a user