On Fri, 28 May 2010 16:49:59 +0400, Арсений Т <[email protected]>
wrote:
> Hi!
> 
> I've got an issue here.
> 1. Install PyQt-Py2.5-gpl-4.7.3-1.exe
> 2. Run examples\mainwindows\mdi\mdi.pyw
> 3. Open two windows: Ctrl+N, Ctrl+N
> 4. Trying to make first window active: Alt+W, 1 - nothing happens.
> 
> Thx

Patch attached.

Phil
diff -r 7b456ce3c36e examples/mainwindows/mdi/mdi.py
--- a/examples/mainwindows/mdi/mdi.py   Fri May 28 13:55:02 2010 +0100
+++ b/examples/mainwindows/mdi/mdi.py   Fri May 28 15:19:13 2010 +0100
@@ -258,7 +258,7 @@
             action.setCheckable(True)
             action.setChecked(child == self.activeMdiChild())
             action.triggered.connect(self.windowMapper.map)
-            self.windowMapper.setMapping(action, child)
+            self.windowMapper.setMapping(action, window)
 
     def createMdiChild(self):
         child = MdiChild()
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to