Date: Sun, 5 Aug 2007 03:11:24 GMT From: Andrew Turner <andrew@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 124704 for review Message-ID: <200708050311.l753BOK3018457@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124704 Change 124704 by andrew@andrew_hermies on 2007/08/05 03:10:36 Remove the directories from the tree view when disconnecting Affected files ... .. //depot/projects/soc2007/andrew-update/frontend/facund/computer.py#10 edit .. //depot/projects/soc2007/andrew-update/frontend/facund/gui/computer_model.py#6 edit Differences ... ==== //depot/projects/soc2007/andrew-update/frontend/facund/computer.py#10 (text+ko) ==== @@ -185,6 +185,7 @@ threading.Thread.__init__(self) del self.__connection self.__connection = None + self.__dirs = [] def run(self): '''The main communications thread''' ==== //depot/projects/soc2007/andrew-update/frontend/facund/gui/computer_model.py#6 (text+ko) ==== @@ -63,7 +63,10 @@ command_iter = self.append(dir_iter) self.set(command_iter, 0, command) else: - pass + iter = self.iter_children(self.__iterators[computer]) + while iter is not None: + self.remove(iter) + iter = self.iter_children(self.__iterators[computer]) def getComputer(self, position):
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708050311.l753BOK3018457>