[atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.82,1.83
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/kde/kdegames/atlantik/libatlantikclient
In directory office:/tmp/cvs-serv22350/libatlantikclient
Modified Files:
atlantik_network.cpp
Log Message:
don't do the same stuff twice
Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- atlantik_network.cpp 20 Jan 2003 17:18:47 -0000 1.82
+++ atlantik_network.cpp 21 Jan 2003 02:38:33 -0000 1.83
@@ -305,14 +305,11 @@
QDomElement eButton = nButtons.toElement();
if (!eButton.isNull() && eButton.tagName() == "button")
{
- QDomElement eButton = nButtons.toElement();
- if (!eButton.isNull() && eButton.tagName() == "button")
- {
- emit addCommandButton(eButton.attributeNode(QString("command")).value(), eButton.attributeNode(QString("caption")).value(), eButton.attributeNode(QString("enabled")).value().toInt());
- hasButtons = true;
- }
+ emit addCommandButton(eButton.attributeNode(QString("command")).value(), eButton.attributeNode(QString("caption")).value(), eButton.attributeNode(QString("enabled")).value().toInt());
+ hasButtons = true;
}
}
+
if (!hasButtons)
emit addCloseButton();
}