Fix error in progress display when creating a new project.
This commit is contained in:
parent
92513bfb21
commit
ded97d5197
|
@ -104,6 +104,9 @@ Loggable::replay ( FILE *fp )
|
|||
off_t total = st.st_size;
|
||||
off_t current = 0;
|
||||
|
||||
if ( _progress_callback )
|
||||
_progress_callback( 0, _progress_callback_arg );
|
||||
|
||||
while ( fscanf( fp, "%[^\n]\n", buf ) == 1 )
|
||||
{
|
||||
if ( ! ( ! strcmp( buf, "{" ) || ! strcmp( buf, "}" ) ) )
|
||||
|
|
|
@ -554,7 +554,7 @@ delete win;}
|
|||
code0 {o->spacing( 10 );}
|
||||
} {
|
||||
Fl_Box {} {
|
||||
label {<Transport>} selected
|
||||
label {<Transport>}
|
||||
xywh {5 23 189 46} color 30
|
||||
code0 {transport = o;}
|
||||
code1 {o->labeltype( FL_NO_LABEL );}
|
||||
|
@ -819,13 +819,16 @@ else if ( 0 == p )
|
|||
progress->hide();
|
||||
}
|
||||
|
||||
DMESSAGE( "progress: %d%%", p );
|
||||
|
||||
static char pat[10];
|
||||
|
||||
update_progress( progress, pat, p );
|
||||
|
||||
progress->redraw();
|
||||
|
||||
Fl::check();} {}
|
||||
Fl::check();} {selected
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue