[atlantik-cvs] CVS: kdegames/atlantik/libatlantic trade.cpp,1.18,1.19

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

Modified Files:
	trade.cpp 
Log Message:
bugfix: don't crash when removing money from a trade

Index: trade.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/trade.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- trade.cpp	23 Dec 2002 01:56:48 -0000	1.18
+++ trade.cpp	23 Dec 2002 01:59:47 -0000	1.19
@@ -75,7 +75,8 @@
 		else
 		{
 			mTradeItems.removeRef(t);
-			emit itemRemoved(t); // GUI deletes item
+			emit itemRemoved(t);
+			t->deleteLater();
 		}
 	}
 	else if (estate && to)
@@ -115,7 +116,8 @@
 		else
 		{
 			mTradeItems.removeRef(t);
-			emit itemRemoved(t); // GUI deletes item
+			emit itemRemoved(t);
+			t->deleteLater();
 		}
 	}
 	else if (from && to && money)
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.