]> Git trees. - libqmvoc.git/commitdiff
Only have all supported documents, when reading.
authorFrederik Gladhorn <gladhorn@kde.org>
Tue, 18 Sep 2007 18:03:04 +0000 (18:03 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Tue, 18 Sep 2007 18:03:04 +0000 (18:03 +0000)
BUG: 149943

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=714082

keduvocdocument/keduvocdocument.cpp

index c347d91dccf68f97f5aef8733f2530f869710be2..c610951ead5460f8c1195871d126bc923bf5e9ae 100644 (file)
@@ -1237,7 +1237,9 @@ QString KEduVocDocument::pattern( FileDialogMode mode )
             allext.append( QLatin1String( filters[i].extensions ) );
         }
     }
-    newfilters.prepend( allext.join( " " ) + '|' + i18n( "All supported documents" ) );
+    if ( mode == Reading ) {
+        newfilters.prepend( allext.join( " " ) + '|' + i18n( "All supported documents" ) );
+    }
     return newfilters.join( "\n" );
 }