diff options
| author | 2010-07-04 00:07:23 +0000 | |
|---|---|---|
| committer | 2010-07-04 00:07:23 +0000 | |
| commit | 3790df14eaeaa834a702d397b2b55fc8c73a360d (patch) | |
| tree | 0404215b6f548a307736ce4e1eff897655dcfc8c /src | |
| parent | fix for #830 (diff) | |
| download | KVIrc-3790df14eaeaa834a702d397b2b55fc8c73a360d.tar.gz KVIrc-3790df14eaeaa834a702d397b2b55fc8c73a360d.tar.bz2 KVIrc-3790df14eaeaa834a702d397b2b55fc8c73a360d.zip | |
Fix crash in toolbar customization
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4585 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
| -rw-r--r-- | src/kvirc/ui/kvi_customtoolbar.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kvirc/ui/kvi_customtoolbar.cpp b/src/kvirc/ui/kvi_customtoolbar.cpp index ed4cdaea9..4b85d3513 100644 --- a/src/kvirc/ui/kvi_customtoolbar.cpp +++ b/src/kvirc/ui/kvi_customtoolbar.cpp @@ -271,7 +271,10 @@ void KviCustomToolBar::dragLeaveEvent(QDragLeaveEvent *) { if(m_pFilteredChildren) m_pFilteredChildren->remove(m_pDraggedChild); // just to be sure - delete m_pDraggedChild; + //m_pDraggedChild->reparent(0); + m_pDraggedChild->hide(); + m_pDraggedChild->deleteLater(); // don't delete it now: it's going to crash with recent Qt versions + //delete m_pDraggedChild; m_pDraggedChild = 0; } } |
