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, ""); }
I fixed that myself some time ago