fix cancel

This commit is contained in:
Valentin Boettcher 2018-03-26 19:58:10 +02:00
parent ea8f6b2be5
commit fd4ac1676a

View file

@ -238,7 +238,10 @@ void setRecordBarsCb(Fl_Widget *w, void* data)
long bars = (long)data;
if(bars == -2){
const char* answer = fl_input("Enter a custom number: ");
bars = atoi(answer);
if(!answer)
bars = -1;
else
bars = atoi(answer);
}
EventLooperBarsToRecord e(track->ID, track->getLastClipNum(), bars);