From 5216648d0b2371656cf88218f0b8d501ef9cbf7a Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 25 Nov 2015 10:09:17 +0100 Subject: [PATCH] Share dialog: Work around painting bug #4189 --- src/gui/shareusergroupwidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/shareusergroupwidget.cpp b/src/gui/shareusergroupwidget.cpp index ae8e4fbe5c..4d5841c14a 100644 --- a/src/gui/shareusergroupwidget.cpp +++ b/src/gui/shareusergroupwidget.cpp @@ -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()