[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui estatedetails.cpp,1.23,1.24
[email protected] Mon, 14 Jul 2003 00:28:32 +0200 (CEST)
Newsgroups
gmane.comp.kde.devel.atlantik
Message-ID
<[email protected] >
Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv2750/libatlantikui
Modified Files:
estatedetails.cpp
Log Message:
fix bug #61118: Multiple Close buttons
Index: estatedetails.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/estatedetails.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- estatedetails.cpp 9 Jun 2003 21:33:47 -0000 1.23
+++ estatedetails.cpp 13 Jul 2003 22:28:28 -0000 1.24
@@ -224,11 +224,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)