[Libreoffice-commits] .: Branch 'libreoffice-3-3' - fpicker/source

Lubos Lunak llunak at kemper.freedesktop.org
Wed Dec 15 06:49:46 PST 2010


 fpicker/source/unx/kde4/KDE4FilePicker.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 042933bbfb3ff69a34a0df12105e084cc95961e0
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Wed Dec 15 15:44:47 2010 +0100

    convert from the KDE pattern|description format if needed, just in case

diff --git a/fpicker/source/unx/kde4/KDE4FilePicker.cxx b/fpicker/source/unx/kde4/KDE4FilePicker.cxx
index 9a8b762..cef3d39 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


More information about the Libreoffice-commits mailing list