[Bug 155224] New: Wrong behaviour of KFileDialog::getSaveFileName with double extension filenames
Albert Astals Cid
tsdgeos at terra.es
Mon Jan 7 15:11:21 CET 2008
------- 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=155224
Summary: Wrong behaviour of KFileDialog::getSaveFileName with
double extension filenames
Product: kdelibs
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: NEW
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdelibs-bugs kde org
ReportedBy: tsdgeos terra es
Version: (using KDE Devel)
Installed from: Compiled sources
The given program works for the first getSaveFileName call, it suggests pepe.bar as filename, but does not work for the second call, it suggests pepe.foo.foo.bar for as filename. dfaure agrees this is a bug
#include <kapplication.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include <kfiledialog.h>
int main(int argc, char *argv[])
{
KAboutData aboutData( "test", "", ki18n("test"), "0.1", ki18n(""), KAboutData::License_GPL, ki18n(""), ki18n(""));
KCmdLineArgs::init(argc, argv, &aboutData);
KApplication app;
KFileDialog::getSaveFileName(KUrl("pepe.bar"), "*.bar|My fooFiles", 0, "");
KFileDialog::getSaveFileName(KUrl("pepe.foo.bar"), "*.foo.bar|My fooBarFiles", 0, "");
}
More information about the Kdelibs-bugs
mailing list