deleteLater() on failure

pull/1635/head
NepNep21 11 months ago
parent a691f5de3c
commit c4ab063aec
No known key found for this signature in database
GPG Key ID: 60372BB5B7534B09
  1. 3
      src/timeline/InputBar.cpp

@ -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…
Cancel
Save