From 3c83d8f14defbec5f09aeeb78de3885535d2dc71 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 8 Feb 2012 15:16:35 +0100 Subject: Drag and drop: Adjust destination if the item is no directory or desktop-file The URL of the view should be used as destination target if a dropping is not done above a directory or desktop-file. BUG: 293511 FIXED-IN: 4.8.1 --- src/kitemviews/kfileitemmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kitemviews/kfileitemmodel.cpp') diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index 6cb7577f2..e0ae03302 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -257,7 +257,7 @@ int KFileItemModel::indexForKeyboardSearch(const QString& text, int startFromInd bool KFileItemModel::supportsDropping(int index) const { const KFileItem item = fileItem(index); - return item.isNull() ? false : item.isDir(); + return item.isNull() ? false : item.isDir() || item.isDesktopFile(); } QString KFileItemModel::roleDescription(const QByteArray& role) const -- cgit v1.3