[Libreoffice-commits] .: fpicker/source
Lubos Lunak
llunak at kemper.freedesktop.org
Wed Dec 15 06:45:26 PST 2010
fpicker/source/unx/kde4/KDE4FilePicker.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit cc719b75587d7935402857135256e45430bdec34
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 e9b71a3..e2d3413 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