Version: 4.7 (using KDE 4.7.1) OS: Linux When using drag'n'drop to attach a file to a message in the composer window, dropping the file in the message area results in inserting the filepath in the subject instead of attaching the file when the focus is on the subject input field. Reproducible: Always Steps to Reproduce: 1. Open composer 2. Set cursor into subject input field 3. Drag'n'drop a file to the body input field Actual Results: The path of the dropped file is inserted in the subject input field. Expected Results: The file should be attached as it is done in every other case (cursor focus in recipient input field, message body input field, etc.) OS: Linux (x86_64) release 3.0.4-gentoo-r1 Compiler: x86_64-pc-linux-gnu-gcc
By default file is attach just when we dnd in message body input not in other fields.
(In reply to comment #1) > By default file is attach just when we dnd in message body input not in other > fields. That's the problem: although I drop the file to the message body input field, it isn't attached. Instead, it's path is inserted into the subject, just because the cursor focus is there. It works, dropping the file to the message body input field, when the cursor focus is in another input field (e.g. To:).
"It works, dropping the file to the message body input field, when the cursor focus is in another input field (e.g. To:)." I don't know how it works for you but there is not code for it :) But your first comment is ok I will look at it
It"s not a good idea. When we want to dnd data we dnd on composer not on lineedit.
(In reply to comment #4) > It"s not a good idea. > When we want to dnd data we dnd on composer not on lineedit. Sorry, I don't get what you mean with this comment. The problem wasn't, that it is not possible to drop something into a lineedit field (such as the subject field), but the problem was: - When the focus is on the subject field, it is not possible to drop something to the "Body" textarea at all. But it looks like this issue has been fixed in the meantime anyways (running now 4.7.3) and it can't be reproduced anymore.