Comment #2 on issue 184 by sunyin51: unable to middle mouse click to close the inactive file
http://code.google.com/p/ulipad/issues/detail?id=184

made a fix, but not perfect, as it will change the selection to where mouse is.

Index: EditorFactory.py
===================================================================
--- EditorFactory.py    (revision 504)
+++ EditorFactory.py    (working copy)
@@ -371,7 +371,8 @@
     def OnClose(self, event):
         if not self.skip_closing:
             event.Veto()
-            wx.CallAfter(self.mainframe.CloseFile, self.document)
+            document = self.getDoc(event.GetSelection())
+            wx.CallAfter(self.mainframe.CloseFile, document)
         else:
             event.Skip()
         self.skip_closing = False


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to