- int window_config = config >= 0 ? config :
- mwindow->session->window_config;
- if( mwindow->tile_windows(window_config) ) {
- mwindow->restart_status = 1;
- mwindow->gui->set_done(0);
+ if( mwindow->session->current_operation == NO_OPERATION ) {
+ int window_config = config >= 0 ? config :
+ mwindow->session->window_config;
+ if( mwindow->tile_windows(window_config) ) {
+ mwindow->restart_status = 1;
+ mwindow->gui->set_done(0);
+ }