Skip to content

Commit 7870401

Browse files
committed
Make sure mouse release doesn't revert dock controls when plot is pending
1 parent 7f1d01c commit 7870401

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

openmc_plotter/plotgui.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,11 @@ def mouseReleaseEvent(self, event):
348348
self.rubber_band.hide()
349349
self.main_window.applyChanges()
350350
else:
351+
plot_manager = self.main_window.plot_manager
352+
if plot_manager.is_busy or plot_manager.has_pending:
353+
return
354+
if self.main_window.model.activeView != self.main_window.model.currentView:
355+
return
351356
self.main_window.revertDockControls()
352357

353358
def wheelEvent(self, event):

0 commit comments

Comments
 (0)