Skip to content
Snippets Groups Projects
Unverified Commit c4ab063a authored by NepNep21's avatar NepNep21
Browse files

deleteLater() on failure

parent a691f5de
No related branches found
No related tags found
No related merge requests found
Pipeline #5433 failed
...@@ -955,8 +955,9 @@ void ...@@ -955,8 +955,9 @@ void
InputBar::toggleIgnore(const QString &user, const bool ignored) InputBar::toggleIgnore(const QString &user, const bool ignored)
{ {
UserProfile *profile = new UserProfile(QString(), user, TimelineViewManager::instance()); 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)); MainWindow::instance()->showNotification(tr("Failed to fetch user %1").arg(user));
profile->deleteLater();
}); });
connect( connect(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment