[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui estatedetails.cpp,1.12.4.4,1.12.4.5

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

Modified Files:
      Tag: KDE_3_1_BRANCH
	estatedetails.cpp 
Log Message:
backport for fix bug #61118: Multiple Close buttons

CCMAIL: [email protected]


Index: estatedetails.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/estatedetails.cpp,v
retrieving revision 1.12.4.4
retrieving revision 1.12.4.5
diff -u -d -r1.12.4.4 -r1.12.4.5
--- estatedetails.cpp	9 Jun 2003 21:33:56 -0000	1.12.4.4
+++ estatedetails.cpp	13 Jul 2003 22:31:00 -0000	1.12.4.5
@@ -222,11 +222,13 @@
 
 void EstateDetails::addCloseButton()
 {
-	m_closeButton = new KPushButton(i18n("Close"), this);
-	m_buttonBox->addWidget(m_closeButton);
-	m_closeButton->show();
-
-	connect(m_closeButton, SIGNAL(pressed()), this, SIGNAL(buttonClose()));
+	if (!m_closeButton)
+	{
+		m_closeButton = new KPushButton(i18n("Close"), this);
+		m_buttonBox->addWidget(m_closeButton);
+		m_closeButton->show();
+		connect(m_closeButton, SIGNAL(pressed()), this, SIGNAL(buttonClose()));
+	}
 }
 
 void EstateDetails::setEstate(Estate *estate)
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.