Skip to content

Commit

Permalink
Refs #9120. Process events after the search is finished
Browse files Browse the repository at this point in the history
After the file searching thread is finished, it emits some signals
which MWRunFiles needs to process before we can access the found files.
We are now doing that by calling QApplication::processEvent() after the
search process has finished.
  • Loading branch information
arturbekasov committed Mar 5, 2014
1 parent 7970a77 commit fe189e1
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -297,9 +297,12 @@ namespace MantidWidgets
// Wait for file search to finish.
while ( m_ui.runs->isSearching() )
{
QApplication::instance()->processEvents();
QApplication::processEvents();
}

// To process events from the finished thread
QApplication::processEvents();

// Validate input fields
if ( ! isInputValid() )
{
Expand Down

0 comments on commit fe189e1

Please sign in to comment.