Description of work
Fixes the widget window bug. When the job selection is changed the widgets in that layout need to be deleted before the widgets of the new jobs are created and then added to the layout. This change makes sure that they get deleted.
Fixes
Closes #448
To test
Load up a long trajectory and go to the jobs tab. Quickly switch between different jobs the bug seen in #448 should not occur. Run a job and load the results, everything should work correctly.
Description of work Fixes the widget window bug. When the job selection is changed the widgets in that layout need to be deleted before the widgets of the new jobs are created and then added to the layout. This change makes sure that they get deleted.
Fixes Closes #448
To test Load up a long trajectory and go to the jobs tab. Quickly switch between different jobs the bug seen in #448 should not occur. Run a job and load the results, everything should work correctly.