fix progress reporter, use idle callback.
do not directly hook into Glib's Main Context.
This commit is contained in:
parent
f3b47dc939
commit
62a161195c
@ -18,7 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <glibmm/main.h>
|
#include "ardour/ardour.h"
|
||||||
#include "progress_reporter.h"
|
#include "progress_reporter.h"
|
||||||
|
|
||||||
ProgressReporter::ProgressReporter ()
|
ProgressReporter::ProgressReporter ()
|
||||||
@ -35,10 +35,6 @@ void
|
|||||||
ProgressReporter::set_overall_progress (float p)
|
ProgressReporter::set_overall_progress (float p)
|
||||||
{
|
{
|
||||||
update_progress_gui (p);
|
update_progress_gui (p);
|
||||||
|
ARDOUR::GUIIdle ();
|
||||||
/* Make sure the progress widget gets updated */
|
|
||||||
while (Glib::MainContext::get_default()->iteration (false)) {
|
|
||||||
/* do nothing */
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user