diff options
| author | Frank Reininghaus <[email protected]> | 2012-11-24 05:08:25 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2012-11-24 05:10:56 +0100 |
| commit | 4220612684a150f87c9ed95b9aa51962db52a105 (patch) | |
| tree | 00f923913465fb9a59d97a58ef6d33d287d9c814 /src | |
| parent | 96672c166f2acfe56b5a2779562082a0e9fab825 (diff) | |
Delete FileMetaDataToolTip using deleteLater() to prevent crashes
The problem was that Qt tried to deliver an 'Enter' event to the
dangling pointer that once pointed to the tool tip.
Many thanks to G. Christ for finding a way to reproduce this crash!
BUG: 282257
BUG: 310579
FIXED-IN: 4.9.4
Diffstat (limited to 'src')
| -rw-r--r-- | src/views/tooltips/tooltipmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/views/tooltips/tooltipmanager.cpp b/src/views/tooltips/tooltipmanager.cpp index d948bfd86..bd6948363 100644 --- a/src/views/tooltips/tooltipmanager.cpp +++ b/src/views/tooltips/tooltipmanager.cpp @@ -104,7 +104,9 @@ void ToolTipManager::hideToolTip() if (m_fileMetaDataToolTip) { m_fileMetaDataToolTip->hide(); - delete m_fileMetaDataToolTip; + // Do not delete the tool tip immediately to prevent crashes when + // QCoreApplication tries to deliver an 'Enter' event to it, see bug 310579. + m_fileMetaDataToolTip->deleteLater(); m_fileMetaDataToolTip = 0; } } |
