Ejemplo n.º 1
0
    def deleteServer(self):
        #Which server configuration is selected?
        if not self.ServerListView.currentItem():
            #Nothing selected, nothing to do.
            return
        name = self.ServerListView.currentItem().text()

        #Remove the corresponding server from the server_list.
        ServerConfigurations.removeServerByName(name)
        #And remove it from the ListView as well.
        self.removeSelectedItem()