diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-08-17 21:03:10 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-08-17 21:03:10 +0200 |
commit | 9821354f7178b9a13043075ed423b6451a8488c1 (patch) | |
tree | 5b9df133ef3664d2cd94a8cf80ef37e6a194aa1b /src | |
parent | - Drag and drop in the bookmark toolbar between root items only (for the ... (diff) | |
download | rekonq-9821354f7178b9a13043075ed423b6451a8488c1.tar.xz |
Fix a strange behaviour if a dragged item is dropped on itself
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmarks/bookmarkstoolbar.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bookmarks/bookmarkstoolbar.cpp b/src/bookmarks/bookmarkstoolbar.cpp index e9ab8a5a..1ec1d677 100644 --- a/src/bookmarks/bookmarkstoolbar.cpp +++ b/src/bookmarks/bookmarkstoolbar.cpp @@ -393,7 +393,8 @@ void BookmarkToolBar::dropEvent(QDropEvent *event) KBookmarkActionInterface *destBookmarkAction = dynamic_cast<KBookmarkActionInterface *>(destAction); QWidget *widgetAction = widgetForAction(destAction); - if (!bookmark.isNull() && destBookmarkAction && !destBookmarkAction->bookmark().isNull() && widgetAction) + if (!bookmark.isNull() && destBookmarkAction && !destBookmarkAction->bookmark().isNull() + && widgetAction && bookmark.address() != destBookmarkAction->bookmark().address()) { KBookmarkGroup root = Application::bookmarkProvider()->rootGroup(); KBookmark destBookmark = destBookmarkAction->bookmark(); |