Skip to content

Commit

Permalink
Merge pull request #1654 from curlymorphic/i818
Browse files Browse the repository at this point in the history
Proposed fix 818 Merge file name and preset name. Remove double naming
  • Loading branch information
tresf committed Jan 19, 2015
2 parents 9f75aab + 746ea39 commit d9b81bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tracks/InstrumentTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,8 @@ void InstrumentTrackWindow::saveSettingsBtnClicked()
sfd.setAcceptMode( FileDialog::AcceptSave );
sfd.setDirectory( presetRoot + m_track->instrumentName() );
sfd.setFileMode( FileDialog::AnyFile );
QString fname = m_track->name();
sfd.selectFile(fname.remove(QRegExp("[^a-zA-Z0-9\\d\\s]")).toLower().replace( " ", "_" ) );

if( sfd.exec() == QDialog::Accepted &&
!sfd.selectedFiles().isEmpty() &&
Expand Down

0 comments on commit d9b81bc

Please sign in to comment.