r14010 by fschmid - Fixed the issue that the CloseEvent didn't destruct the Documents properly

scribus-commit scribus-commit at lists.scribus.net
Mon Sep 21 14:20:18 CEST 2009


Revision: 14010
Author: fschmid
Date: 2009-09-21T12:22:14.735143Z
Commit message: Fixed the issue that the CloseEvent didn't destruct the Documents properly

Changeset: 
M  /trunk/Scribus/scribus/scribus.cpp

Diffs:
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp	(revision 14009)
+++ scribus/scribus.cpp	(revision 14010)
@@ -1942,8 +1942,10 @@
 		uint windowCount=windows.count();
 		for ( uint i = 0; i < windowCount; ++i )
 		{
-			tw = dynamic_cast<ScribusWin *>(windows.at(i));
-			if (tw)
+			tw = (ScribusWin *)(windows.at(i));
+			QMdiSubWindow *tws = windows.at(i);
+			ScribusWin* scw = dynamic_cast<ScribusWin *>(tws->widget());
+			if (scw)
 			{
 				newActWin(windows.at(i));
 				tw = ActWin;




More information about the scribus-commit mailing list