[QT] cosmetic, use regexp instead of multiple removes in simple preferences
[vlc.git] / 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 */