[Bug 153676] Parts of the filename not selected because of incorrect extension guessing
Thomas McGuire
Thomas.McGuire at gmx.net
Sun Dec 9 14:53:00 CET 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=153676
Thomas.McGuire gmx net changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|kdepim-bugs kde org |kdelibs-bugs kde org
Product|kmail |kdelibs
Summary|kmail should select all of |Parts of the filename not
|subject for file name when |selected because of
|saving message |incorrect extension guessing
------- Additional Comments From Thomas.McGuire gmx net 2007-12-09 14:52 -------
This seems to be a problem in kdelibs. KMail just calls:
>static KUrl subjectToUrl( const QString &subject ) {
>
> return KFileDialog::getSaveUrl( KUrl::fromPath( subject.trimmed()
> .replace( QDir::separator(), '_' ) ),
> "*.mbox" );
>}
I don't see anything wrong with that.
So it seems KFileDialog thinks the rest after the dot is the extension, and therefore selects everything before the dot.
I think KFileDialog should check if the extension is really a known extension, by looking at the mime database and see if the extension is known there.
More information about the Kdelibs-bugs
mailing list