예제 #1
0
    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)
예제 #2
0
 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)