Bug 298982 - Multiple filters aren't supported for getopenfilename and similar dialogs
Summary: Multiple filters aren't supported for getopenfilename and similar dialogs
Status: RESOLVED DUPLICATE of bug 295820
Alias: None
Product: kdialog
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Brad Hards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-28 15:06 UTC by Ruslan Kabatsayev
Modified: 2012-04-28 16:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch to fix this issue (1.02 KB, patch)
2012-04-28 15:06 UTC, Ruslan Kabatsayev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruslan Kabatsayev 2012-04-28 15:06:19 UTC
Created attachment 70725 [details]
Patch to fix this issue

Some projects need to pass multiple filters to open/save file dialogs. See e.g. this: http://code.google.com/p/chromium/issues/detail?id=109913 . But kdialog doesn't appear to support them because any line feeds are translated into spaces by command interpreter, and "\n" just isn't a line feed.
I'm attaching a simple patch which would allow to use "filter1\nfilter2" to pass filter1 and filter2 filters to the dialog.
Comment 1 Christoph Feck 2012-04-28 16:27:39 UTC

*** This bug has been marked as a duplicate of bug 295820 ***