Skip to content

Commit

Permalink
fix crash when deleting built-in soundfont from synth
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Apr 15, 2013
1 parent b4b960c commit f9f8462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluid/fluid.cpp
Expand Up @@ -820,7 +820,7 @@ SFont* Fluid::get_sfont_by_id(int id)
SFont* Fluid::get_sfont_by_name(const QString& name)
{
foreach(SFont* sf, sfonts) {
if (sf->get_name() == name)
if (QFileInfo(sf->get_name()).fileName() == name)
return sf;
}
return 0;
Expand Down

0 comments on commit f9f8462

Please sign in to comment.