Only MacOS and Windows are case insensitive (#4768)
This commit is contained in:
@@ -1414,7 +1414,12 @@ void Song::exportProject( bool multiExport )
|
||||
// Get first extension from selected dropdown.
|
||||
// i.e. ".wav" from "WAV-File (*.wav), Dummy-File (*.dum)"
|
||||
suffix = efd.selectedNameFilter().mid( stx + 2, etx - stx - 2 ).split( " " )[0].trimmed();
|
||||
exportFileName.remove( "." + suffix, Qt::CaseInsensitive );
|
||||
|
||||
Qt::CaseSensitivity cs = Qt::CaseSensitive;
|
||||
#if defined(LMMS_BUILD_APPLE) || defined(LMMS_BUILD_WIN32)
|
||||
cs = Qt::CaseInsensitive;
|
||||
#endif
|
||||
exportFileName.remove( "." + suffix, cs );
|
||||
if ( efd.selectedFiles()[0].endsWith( suffix ) )
|
||||
{
|
||||
if( VersionedSaveDialog::fileExistsQuery( exportFileName + suffix,
|
||||
|
||||
Reference in New Issue
Block a user