[vlc-devel] [PATCH] Fix for Ticket #4345
Francois Cartegnie
fcvlcdev at free.fr
Sun Sep 16 22:06:11 CEST 2012
Le 16/09/2012 00:08, Vasily Fomin a écrit :
> + if ( index != -1 ) {
> + int delta = fileLine->text().length() - index;
> + newFileName = fileLine->text().replace( index, delta, newFileExtension );
> + } else {
> + newFileName = fileLine->text() + newFileExtension;
> + }
> + fileLine->setText( toNativeSeparators( newFileName ) );
> + }
> +}
See:
QFileInfo::completeSuffix()
Francois
More information about the vlc-devel
mailing list