From atlantik-devel Tue Jan 21 02:38:35 2003 From: kde () office ! kde ! org Date: Tue, 21 Jan 2003 02:38:35 +0000 To: atlantik-devel Subject: [atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.82,1.83 X-MARC-Message: https://marc.info/?l=atlantik-devel&m=104311681520558 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(); } _______________________________________________ atlantik-cvs mailing list atlantik-cvs@mail.kde.org http://mail.kde.org/mailman/listinfo/atlantik-cvs