def xon_hostEditButton_clicked(self): if self.ui.hostList.currentItem() is None: pass # OVELog('No item to edit') else: currentRow = self.ui.hostList.currentRow() hostWindow = OVEHostWindow(self, self.configHosts[currentRow]) hostWindow.exec_() self.handleHostWindowRecord(hostWindow.record(), True)
def xon_hostAddButton_clicked(self): hostWindow = OVEHostWindow(self) hostWindow.exec_() self.handleHostWindowRecord(hostWindow.record(), False)