Fix filter list when opening a file

Signed-off-by: mio <stigma@disroot.org>
(cherry picked from commit c0311bdfc3)
r14.1.x
mio 10 months ago committed by Michele Calgaro
parent fb0c092eaa
commit f41da351c6
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -904,8 +904,32 @@ VideoWindow::fileFilter() const
TQString filter("*.");
filter.append(supportedExtensions);
filter.remove( "txt" );
// Remove protocols
filter.remove(" dvb://");
filter.remove(" dvbc://");
filter.remove(" dvbs://");
filter.remove(" dvbt://");
filter.remove(" vcd:/");
filter.remove(" vdr:/");
filter.remove(" netvdr:/");
filter.remove(" dvd:/");
filter.remove(" pvr:/");
filter.remove(" slave://");
filter.remove(" cdda:/");
// Remove image files
filter.remove(" bmp");
filter.remove(" gif");
filter.remove(" jpg");
filter.remove(" jpeg");
filter.remove(" png");
// Remove misc. files
filter.remove(" txt");
// Remove spaces (prevent multiple *.)
filter.replace(" ", " ");
filter.replace(' ', " *.");
std::free(supportedExtensions);

Loading…
Cancel
Save