summaryrefslogtreecommitdiff
path: root/fpicker/source/unx/kde4/KDE4FilePicker.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2010-12-15 15:44:47 +0100
committerLuboš Luňák <l.lunak@suse.cz>2010-12-15 15:49:22 +0100
commit042933bbfb3ff69a34a0df12105e084cc95961e0 (patch)
treea0375fd8a9d82ab6089d561dc9a8b72b6155de40 /fpicker/source/unx/kde4/KDE4FilePicker.cxx
parent65dc25b5ee9431d2fc7354d7871c5db3494db3f8 (diff)
convert from the KDE pattern|description format if needed, just in case
Diffstat (limited to 'fpicker/source/unx/kde4/KDE4FilePicker.cxx')
-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