diff options
| author | Peter Penz <[email protected]> | 2007-11-28 17:07:08 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-11-28 17:07:08 +0000 |
| commit | eac29a517cc54c610a16815fd6ec718f92f5e5ba (patch) | |
| tree | e841d8f31bb5817054510c5e6333fa7cc9fa221f /src/dolphindetailsview.cpp | |
| parent | edf8be2dffa671faabf0fbf6e93b72441f20da5c (diff) | |
fix crash during drag & drop if the file item is not available (thanks to John Tapsell for the original fix in dolphiniconsview.cpp!)
svn path=/trunk/KDE/kdebase/apps/; revision=742703
Diffstat (limited to 'src/dolphindetailsview.cpp')
| -rw-r--r-- | src/dolphindetailsview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 3fd1e9468..55851dc95 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -251,7 +251,8 @@ void DolphinDetailsView::dragMoveEvent(QDragMoveEvent* event) m_dragging = false; } else { m_dragging = true; - if (itemForIndex(index).isDir()) { + const KFileItem item = itemForIndex(index); + if (!item.isNull() && item.isDir()) { m_dropRect = visualRect(index); } else { m_dropRect.setSize(QSize()); // set as invalid |
