def doProperties(self, row): if row >= 0: ovconfig = self.tableConnections.configs[row] propDialog = Properties(self.config, ovconfig, self) if propDialog.exec_(): ovconfig = propDialog.getconfig() self.editconnection(ovconfig, row) ovconfig.copycerts() filename = ovconfig.writeconfig() settingkey = "connections/%s" % ovconfig.getname() self.settings.setValue(settingkey, filename)
def on_actionNew_triggered(self): """ Create a new config """ propDialog = Properties(self.config, parent=self) if propDialog.exec_(): ovconfig = propDialog.getconfig() self.addconnection(ovconfig) ovconfig.copycerts() filename = ovconfig.writeconfig() settingkey = "connections/%s" % ovconfig.getname() self.settings.setValue(settingkey, filename)