| Summary: | Wrong behaviour of KFileDialog::getSaveFileName with double extension filenames | ||
|---|---|---|---|
| Product: | [Unmaintained] kdelibs | Reporter: | Albert Astals Cid <aacid> |
| Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
I fixed that myself some time ago |
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, ""); }