mirror of
https://github.com/LMMS/lmms.git
synced 2026-04-01 21:04:18 -04:00
Checks for .mpt extension, before adding extension when saving project templates
This commit is contained in:
@@ -831,7 +831,7 @@ bool MainWindow::saveProjectAs()
|
||||
!sfd.selectedFiles().isEmpty() && sfd.selectedFiles()[0] != "" )
|
||||
{
|
||||
QString fname = sfd.selectedFiles()[0] ;
|
||||
if( sfd.selectedNameFilter().contains( "(*.mpt)" ) )
|
||||
if( sfd.selectedNameFilter().contains( "(*.mpt)" ) && !sfd.selectedFiles()[0].endsWith( ".mpt" ) )
|
||||
{
|
||||
fname += ".mpt";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user