gui/qt: extended_panels: refactor ChangeFiltersString
commit5f74ae9803b5fbc35792baa7a8d08202c9296454
authorFilip Roséen <filip@atch.se>
Sat, 25 Feb 2017 06:31:42 +0000 (25 07:31 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 25 Feb 2017 14:20:35 +0000 (25 15:20 +0100)
tree5557e74e95ac9bb25afd99484c2fa6283332fa54
parent7a728a6f4d6aa70198b45563936e54c221b4353a
gui/qt: extended_panels: refactor ChangeFiltersString

The previous implementation was unnecessary complex, and by using the
utilities available for string manipulation in Qt we can drastically
reduce the lines of code.

These changes also fixes an issue where a user would be unable to
remove a video-filter if the command-line specified the same
video-filter twice.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt/components/extended_panels.cpp