-Fixed bug in using name from audio.cfg

main
Harry van Haaren 2013-12-12 12:51:17 +00:00
parent ab74e944a4
commit fee7883782
2 changed files with 4 additions and 1 deletions

View File

@ -88,6 +88,7 @@ std::string ClipSelector::clipName(int clip)
void ClipSelector::clipName(int clip, std::string name)
{
clips[clip].setName( name );
redraw();
}
void ClipSelector::setSpecial(int scene)

View File

@ -269,7 +269,9 @@ int DiskReader::loadSample( int track, int scene, string path )
ab->setBeats( beats->valuedouble );
}
if ( name )
gui->getTrack(track)->getClipSelector()->clipName( scene, name->valuestring );
{
ab->setName( name->valuestring );
}
}
// if we don't find the beats from audio.cfg, show dialog