13
0

fix progress reporter, use idle callback.

do not directly hook into Glib's Main Context.
This commit is contained in:
Robin Gareus 2015-09-19 17:32:12 +02:00
parent f3b47dc939
commit 62a161195c

View File

@ -18,7 +18,7 @@
*/
#include <iostream>
#include <glibmm/main.h>
#include "ardour/ardour.h"
#include "progress_reporter.h"
ProgressReporter::ProgressReporter ()
@ -35,10 +35,6 @@ void
ProgressReporter::set_overall_progress (float p)
{
update_progress_gui (p);
/* Make sure the progress widget gets updated */
while (Glib::MainContext::get_default()->iteration (false)) {
/* do nothing */
}
ARDOUR::GUIIdle ();
}