[atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp,1.141,1.142

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv29628/client

Modified Files:
	atlantik.cpp 
Log Message:
don't delete board but hide and reset

Index: atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/atlantik.cpp,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -d -r1.141 -r1.142
--- atlantik.cpp	25 Feb 2003 04:20:38 -0000	1.141
+++ atlantik.cpp	9 Jun 2003 18:23:51 -0000	1.142
@@ -253,8 +253,10 @@
 	// Reset core and GUI
 	if (m_board)
 	{
-		delete m_board;
-		m_board = 0;
+		m_board->hide();
+		m_board->reset();
+//		delete m_board;
+//		m_board = 0;
 
 		m_portfolioViews.clear();
 		m_atlanticCore->reset();
@@ -349,6 +351,7 @@
 		initBoard();
 
 	m_mainLayout->addMultiCellWidget(m_board, 0, 2, 1, 1);
+	m_board->displayDefault();
 	m_board->show();
 
 	PortfolioView *portfolioView = 0;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.