Bug 91556 - drag'n'drop: staying in dnd mode after dropping file to konqueror/desktop
Summary: drag'n'drop: staying in dnd mode after dropping file to konqueror/desktop
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
: 100776 107527 112077 114409 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-17 22:53 UTC by Kevin Goeser
Modified: 2006-08-26 17:02 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Since FileListView handles dragging, KListView shouldn't attempt to handle dragging too. (400 bytes, patch)
2006-08-26 06:15 UTC, KDEfanboy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Goeser 2004-10-17 22:53:23 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Gentoo Packages
OS:                Linux

When dragging a file out of ark and dropping it somewhere (e.g. copy it), ark stays in dnd mode. So if I move the mouse back to ark, I get an empty item attached to mouse. Klicking e.g. on the desktop afterwards calls a dialog where you can specify a file to save the clipboard contents to (that will create an empty file).
Same thing happens when dropping the file back on ark (to cancel the dnd).
Comment 1 Nicolas L. 2005-04-24 13:51:48 UTC
still valid with kde 3.4.0
Comment 2 Haris Kouzinopoulos 2006-02-05 13:12:45 UTC
*** Bug 114409 has been marked as a duplicate of this bug. ***
Comment 3 Haris Kouzinopoulos 2006-02-05 13:13:31 UTC
*** Bug 107527 has been marked as a duplicate of this bug. ***
Comment 4 Haris Kouzinopoulos 2006-02-05 13:14:01 UTC
*** Bug 112077 has been marked as a duplicate of this bug. ***
Comment 5 Tommi Tervo 2006-05-08 08:48:18 UTC
*** Bug 100776 has been marked as a duplicate of this bug. ***
Comment 6 Niek Beernink 2006-07-04 18:22:40 UTC
A fix for this would be greatly appreciated. 

I tried this when I attempted to extract files with ARK for the first time. Because I'm so used to doing it with WinRAR on Windows. Kindof surprised it didn't work as expected. 
Comment 7 Daniel Frein 2006-07-04 18:54:38 UTC
d'n'd for archive extraction is fundamentally broken in ark, and it seems that this won't change within the near future. 

some nice examples: try to d'n'd a file from a relatively big archive (e.g. amarok-1.4.1.tar.bz2, 13MB). if you release the mouse faster than it takes to decompress the requested files (ca. 10s, since the whole archive has to be processed in the case of tarballs), d'n'd will fail ('empty clipboard'). and only my CPU monitor shows me that I have to press the mouse button a dozen of seconds longer than usual.

try to extract a folder (with files inside) with d'n'd: every file will be extracted twice, once inside the folder and another time within the top level of the hierarchy of the extracted files. and sometimes, extraction of folders completely fails (with a nice error dialog, but if I release the mouse button, the dialog disappears).

BTW: by pressing or releasing the left mouse button during the above tests (with KDE 3.5.3), i accidentally modified a couple of tarballs (moving/copying). 
Comment 8 Eike Hein 2006-07-04 19:01:21 UTC
Well, if someone shows up to do the work - and takes care of syncing with trunk -, I believe there would be a fairly good chance to get fixes for these problems into the 3.5 branch. The situation as-is could hardly be worse, after all.
Comment 9 KDEfanboy 2006-08-26 06:15:16 UTC
Created attachment 17505 [details]
Since FileListView handles dragging, KListView shouldn't attempt to handle dragging too.

This ought to fix returning to DnD mode.
Comment 10 Henrique Pinto 2006-08-26 17:02:57 UTC
SVN commit 577395 by henrique:

 * Fix for drag'n'drop problems.
   Patch by KDEfanboy <KDE.fanboy@gmail.com>. Thank you!
   BUG: 91556



 M  +0 -1      filelistview.cpp  


--- branches/KDE/3.5/kdeutils/ark/filelistview.cpp #577394:577395
@@ -193,7 +193,6 @@
 
 	setMultiSelection( true );
 	setSelectionModeExt( FileManager );
-	setDragEnabled( true );
 	setItemsMovable( false );
 	setRootIsDecorated( true );
 	setShowSortIndicator( true );