@@ -810,6 +810,13 @@ def _startAllActionSlot(self):
810810 """
811811 Slot called when starting all the nodes.
812812 """
813+
814+ reply = QtWidgets .QMessageBox .question (self , "Confirm Start All" , "Are you sure you want to start all devices?" ,
815+ QtWidgets .QMessageBox .Yes | QtWidgets .QMessageBox .No )
816+
817+ if reply == QtWidgets .QMessageBox .No :
818+ return
819+
813820 project = Topology .instance ().project ()
814821 if project is not None :
815822 project .start_all_nodes ()
@@ -819,6 +826,12 @@ def _suspendAllActionSlot(self):
819826 Slot called when suspending all the nodes.
820827 """
821828
829+ reply = QtWidgets .QMessageBox .question (self , "Confirm Suspend All" , "Are you sure you want to suspend all devices?" ,
830+ QtWidgets .QMessageBox .Yes | QtWidgets .QMessageBox .No )
831+
832+ if reply == QtWidgets .QMessageBox .No :
833+ return
834+
822835 project = Topology .instance ().project ()
823836 if project is not None :
824837 project .suspend_all_nodes ()
@@ -828,6 +841,12 @@ def _stopAllActionSlot(self):
828841 Slot called when stopping all the nodes.
829842 """
830843
844+ reply = QtWidgets .QMessageBox .question (self , "Confirm Stop All" , "Are you sure you want to stop all devices?" ,
845+ QtWidgets .QMessageBox .Yes | QtWidgets .QMessageBox .No )
846+
847+ if reply == QtWidgets .QMessageBox .No :
848+ return
849+
831850 project = Topology .instance ().project ()
832851 if project is not None :
833852 project .stop_all_nodes ()
@@ -837,6 +856,12 @@ def _reloadAllActionSlot(self):
837856 Slot called when reloading all the nodes.
838857 """
839858
859+ reply = QtWidgets .QMessageBox .question (self , "Confirm Reload All" , "Are you sure you want to reload all devices?" ,
860+ QtWidgets .QMessageBox .Yes | QtWidgets .QMessageBox .No )
861+
862+ if reply == QtWidgets .QMessageBox .No :
863+ return
864+
840865 project = Topology .instance ().project ()
841866 if project is not None :
842867 project .reload_all_nodes ()
0 commit comments