Bug 298982

Summary: Multiple filters aren't supported for getopenfilename and similar dialogs
Product: [Applications] kdialog Reporter: Ruslan Kabatsayev <b7.10110111>
Component: generalAssignee: Brad Hards <bradh>
Status: RESOLVED DUPLICATE    
Severity: normal CC: thothonegan
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Patch to fix this issue

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 ***