diff options
author | NepNep21 <nepnep91@protonmail.com> | 2023-12-21 22:05:24 -0300 |
---|---|---|
committer | NepNep21 <nepnep91@protonmail.com> | 2023-12-21 22:05:24 -0300 |
commit | c4ab063aecc0d3c01c819a42792850a35a6a59f3 (patch) | |
tree | f93497c939e86832515dd47a001ae9ac2469a0e7 | |
parent | Merge branch 'Nheko-Reborn:master' into ignore-command (diff) | |
download | nheko-c4ab063aecc0d3c01c819a42792850a35a6a59f3.tar.xz |
deleteLater() on failure
-rw-r--r-- | src/timeline/InputBar.cpp | 3 |
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( |