mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
deleteLater() on failure
This commit is contained in:
parent
a691f5de3c
commit
c4ab063aec
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue