Share dialog: Work around painting bug #4189

This commit is contained in:
Christian Kamm 2015-11-25 10:09:17 +01:00
parent c6a65c692e
commit 5216648d0b

View File

@ -301,6 +301,11 @@ void ShareWidget::slotDeleteAnimationFinished()
{
resizeRequested();
deleteLater();
// There is a painting bug where a small line of this widget isn't
// properly cleared. This explicit repaint() call makes sure any trace of
// the share widget is removed once it's destroyed. #4189
connect(this, SIGNAL(destroyed(QObject*)), parentWidget(), SLOT(repaint()));
}
void ShareWidget::slotShareDeleted()