[prev in list] [next in list] [prev in thread] [next in thread] 

List:       atlantik-devel
Subject:    [atlantik-cvs] CVS: kdegames/atlantik/libatlantic atlantic_core.cpp,1.12,1.13 atlantic_core.h,1.11,1
From:       kde () office ! kde ! org
Date:       2002-07-29 19:09:52
[Download RAW message or body]

Update of /home/kde/kdegames/atlantik/libatlantic
In directory office:/tmp/cvs-serv10468/libatlantic

Modified Files:
	atlantic_core.cpp atlantic_core.h 
Log Message:
trade crash fix

Index: atlantic_core.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/atlantic_core.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- atlantic_core.cpp	2002/04/23 17:02:55	1.12
+++ atlantic_core.cpp	2002/07/29 19:09:49	1.13
@@ -24,6 +24,7 @@
 
 AtlanticCore::AtlanticCore(QObject *parent, const char *name) : QObject(parent, name)
 {
+	connect(this, SIGNAL(deleteTrade(Trade *)), this, SLOT(slotDeleteTrade(Trade *)));
 }
 
 QPtrList<Player> AtlanticCore::players()
@@ -74,10 +75,15 @@
 	return trade;
 }
 
-void AtlanticCore::delTrade(Trade *trade)
+void AtlanticCore::removeTrade(Trade *trade)
 {
 	m_trades.remove(trade);
 	emit removeGUI(trade);
+	emit deleteTrade(trade);
+}
+
+void AtlanticCore::slotDeleteTrade(Trade *trade)
+{	
 	delete trade;
 }
 

Index: atlantic_core.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/atlantic_core.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- atlantic_core.h	2002/04/23 17:02:55	1.11
+++ atlantic_core.h	2002/07/29 19:09:49	1.12
@@ -44,7 +44,7 @@
 
 	QPtrList<Trade> trades();
 	Trade *newTrade(int tradeId);
-	void delTrade(Trade *trade);
+	void removeTrade(Trade *trade);
 
 	QPtrList<Auction> auctions();
 	Auction *newAuction(int auctionId, Estate *estate);
@@ -54,6 +54,10 @@
 
 signals:
 	void removeGUI(Trade *trade);
+	void deleteTrade(Trade *trade);
+
+private slots:
+	void slotDeleteTrade(Trade *trade);
 
 private:
 	QPtrList<Player> m_players;

_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic