Skip to content

Commit

Permalink
fix: crash when follower was destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
kegechen committed May 13, 2024
1 parent 096e993 commit 9823744
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/widgets/dalertcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ void DAlertControl::showAlertMessage(const QString &text, QWidget *follower, int
}
d->follower->topLevelWidget()->installEventFilter(this);

// Fix bug-254383
connect(d->follower, &QObject::destroyed, this, &DAlertControl::hideAlertMessage, Qt::UniqueConnection);

d->tooltip->setText(text);
if (d->frame->parent()) {
d->updateTooltipPos();
Expand Down

0 comments on commit 9823744

Please sign in to comment.