update dev300-m58
[ooovba.git] / applied_patches / 0285-fpicker-kde-filter-name.diff
blobe7961297ea5fb7d537b613ac1fb3015c91ca9037
1 --- fpicker/source/unx/kde/kdefilepicker.cxx 2005-05-09 15:16:26.005903927 +0200
2 +++ fpicker/source/unx/kde/kdefilepicker.cxx 2005-05-09 15:16:13.962981172 +0200
3 @@ -714,4 +714,18 @@ void FileFilterComboHack::setCurrentFilt
5 setCurrentText( filter );
6 filterChanged();
8 + // Workaround for 'Filter name (*.blah)' vs. 'Filter name'
9 + if ( currentText() != text( currentItem() ) )
10 + {
11 + int nItem = 0;
12 + for ( ; nItem < count() && !text( nItem ).startsWith( filter ); ++nItem );
14 + if ( nItem < count() )
15 + setCurrentItem( nItem );
16 + else
17 + setCurrentItem( 0 );
19 + filterChanged();
20 + }