node_manager_fkie: fixed the list of closing hosts
@@ -410,8 +410,9 @@ class MainWindow(QMainWindow):
def closeEvent(self, event):
# ask to close nodes on exit
if self._close_on_exit and nm.settings().confirm_exit_when_closing:
+ masters = [uri for uri, m in self.masters.items() if m.online]
res = SelectDialog.getValue('Stop nodes?', "Select masters where to stop:",
- self.masters.keys(), False, False, '', self,
+ masters, False, False, '', self,
select_if_single=False,
checkitem1="don't show this dialog again")
masters2stop, self._close_on_exit = res[0], res[1]
