[QT] cosmetic, use regexp instead of multiple removes in simple preferences
authorIlkka Ollakka <ileoo@videolan.org>
Mon, 15 Dec 2008 11:48:22 +0000 (13:48 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Mon, 15 Dec 2008 11:48:22 +0000 (13:48 +0200)
modules/gui/qt4/components/simple_preferences.cpp

index d2da05c..b70d52f 100644 (file)
@@ -670,10 +670,7 @@ void SPrefsPanel::apply()
                    that we have to remove */
                 if( !b_normChecked )
                 {
-                    /* Ugly :D */
-                    qs_filter.remove( "volnorm:" );
-                    qs_filter.remove( ":volnorm" );
-                    qs_filter.remove( "volnorm" );
+                    qs_filter.remove( QRegExp(":?volnorm:?") );
                 }
             }
             else /* qs_filter not empty, but doesn't have volnorm inside */