summaryrefslogtreecommitdiff
path: root/fpicker/source/unx
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/unx')
-rw-r--r--fpicker/source/unx/kde4/KDE4FilePicker.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/fpicker/source/unx/kde4/KDE4FilePicker.cxx b/fpicker/source/unx/kde4/KDE4FilePicker.cxx
index 9a8b762327..cef3d39221 100644
--- a/fpicker/source/unx/kde4/KDE4FilePicker.cxx
+++ b/fpicker/source/unx/kde4/KDE4FilePicker.cxx
@@ -323,6 +323,7 @@ rtl::OUString SAL_CALL KDE4FilePicker::getCurrentFilter()
// _dialog->currentFilter() wouldn't quite work, because it returns only e.g. "*.doc",
// without the description, and there may be several filters with the same pattern
QString filter = _dialog->filterWidget()->currentText();
+ filter = filter.mid( filter.indexOf( '|' ) + 1 ); // convert from the pattern|description format if needed
filter.replace( "\\/", "/" );
//default if not found