From kde-core-devel Sun Jun 11 17:02:39 2000 From: Matt Koss Date: Sun, 11 Jun 2000 17:02:39 +0000 To: kde-core-devel Subject: KFileDialog::setSelection() X-MARC-Message: https://marc.info/?l=kde-core-devel&m=96074295930124 I wonder why this doesn't work, or maybe I am doing something wrong. In caitoo I want to preselect filename for saving ( file obviously doesn't need to exist ) and setSelection somehow assumes that I pass it a directory name instead of filename. I suspect following code to be a source of a ( possible ) bug : KFileViewItem i(-1, -1, u, true ); // KFileViewItem i(u.path()); if (i.isDir()) setURL(u, true); Regards Matt -- Matt Koss e-mail: koss@miesto.sk