mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +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)
|
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(
|
||||||
|
|
Loading…
Reference in a new issue