Bug 283296 - Drag'n'drop of files to composer doesn't work, when cursor focus is on subject input field
Summary: Drag'n'drop of files to composer doesn't work, when cursor focus is on subjec...
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 4.7
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 07:44 UTC by Elias Probst
Modified: 2011-11-17 18:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2011-10-04 07:44:35 UTC
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
Comment 1 Laurent Montel 2011-10-04 14:09:07 UTC
By default file is attach just when we dnd in message body input not in other fields.
Comment 2 Elias Probst 2011-10-04 14:21:09 UTC
(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:).
Comment 3 Laurent Montel 2011-10-04 14:26:49 UTC
"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
Comment 4 Laurent Montel 2011-11-17 13:09:06 UTC
It"s not a good idea.
When we want to dnd data we dnd on composer not on lineedit.
Comment 5 Elias Probst 2011-11-17 18:46:38 UTC
(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.