summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorAleksei Nikiforov <darktemplar@basealt.ru>2019-03-06 16:10:17 +0300
committerKatarina Behrens <Katarina.Behrens@cib.de>2019-03-13 17:15:12 +0100
commit77ddb3bd2ad78304bc882b1c5ba162c2983f4b56 (patch)
treea6c54a8fe9008d8194a9ccd4ae67b84b0d042e77 /vcl/inc
parentd94ecd7dd0c6db19305d7999852eeb8e869f9a46 (diff)
tdf#123406 KDE5: Update delayed frame destruction
Move deleteLater() call to the different event loop. This fixes issue with frames not being disposed of deterministically, and previously opened window not reactivating. Also hide modal dialog window before unsetting modal mode. Unsetting modal mode may require to toggle window visibility. Window will be hidden soon anyway, and additional generated events might make finding correct focused window harder. Change-Id: Id7839f817075785287b09f6ac79eb3fb211726aa Reviewed-on: https://gerrit.libreoffice.org/68852 Tested-by: Jenkins Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/qt5/Qt5Instance.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/qt5/Qt5Instance.hxx b/vcl/inc/qt5/Qt5Instance.hxx
index 38ead9ed9036..52153846faa1 100644
--- a/vcl/inc/qt5/Qt5Instance.hxx
+++ b/vcl/inc/qt5/Qt5Instance.hxx
@@ -53,10 +53,12 @@ public:
private Q_SLOTS:
bool ImplYield(bool bWait, bool bHandleAllCurrentEvents);
void ImplRunInMain();
+ static void deleteObjectLater(QObject* pObject);
Q_SIGNALS:
bool ImplYieldSignal(bool bWait, bool bHandleAllCurrentEvents);
void ImplRunInMainSignal();
+ void deleteObjectLaterSignal(QObject* pObject);
public:
explicit Qt5Instance(bool bUseCairo = false);