summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNepNep21 <nepnep91@protonmail.com>2023-12-21 22:05:24 -0300
committerNepNep21 <nepnep91@protonmail.com>2023-12-21 22:05:24 -0300
commitc4ab063aecc0d3c01c819a42792850a35a6a59f3 (patch)
treef93497c939e86832515dd47a001ae9ac2469a0e7 /src
parentMerge branch 'Nheko-Reborn:master' into ignore-command (diff)
downloadnheko-c4ab063aecc0d3c01c819a42792850a35a6a59f3.tar.xz
deleteLater() on failure
Diffstat (limited to 'src')
-rw-r--r--src/timeline/InputBar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp

index 7d5e8ba3..03ae5658 100644 --- a/src/timeline/InputBar.cpp +++ b/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(