From: Wido D. <wi...@us...> - 2005-07-26 14:48:46
|
Update of /cvsroot/luma/luma/lib/luma/base/utils/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14046/lib/luma/base/utils/gui Modified Files: LumaEntryBrowser.py Log Message: Fixed bug when using the search filter while not having a connection to the server. Index: LumaEntryBrowser.py =================================================================== RCS file: /cvsroot/luma/luma/lib/luma/base/utils/gui/LumaEntryBrowser.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** LumaEntryBrowser.py 31 May 2005 11:40:06 -0000 1.12 --- LumaEntryBrowser.py 26 Jul 2005 14:48:34 -0000 1.13 *************** *** 163,171 **** def search(self, filter=None): ! self.setEnabled(False) if self.lumaConnection.serverMeta == None: return if not(unicode(self.searchEdit.text()) == ''): filter = unicode(self.searchEdit.text()) --- 163,174 ---- def search(self, filter=None): ! if self.lumaConnection == None: ! return if self.lumaConnection.serverMeta == None: return + self.setEnabled(False) + if not(unicode(self.searchEdit.text()) == ''): filter = unicode(self.searchEdit.text()) *************** *** 195,198 **** --- 198,202 ---- dialog.setErrorMessage(errorMsg) dialog.exec_loop() + self.setEnabled(True) return |