[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui portfolioview.cpp,1.55,1.56

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

Modified Files:
	portfolioview.cpp 
Log Message:
don't show money in portfolio when not in game

Index: portfolioview.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/portfolioview.cpp,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- portfolioview.cpp	27 Feb 2003 01:29:04 -0000	1.55
+++ portfolioview.cpp	14 Jul 2003 04:07:34 -0000	1.56
@@ -204,9 +204,10 @@
 		painter.setPen(Qt::white);
 		painter.setFont(QFont(KGlobalSettings::generalFont().family(), KGlobalSettings::generalFont().pointSize(), QFont::Bold));
 		painter.drawText(ICONSIZE + KDialog::marginHint(), 15, m_player->name());
-		painter.drawText(width() - 50, 15, QString::number(m_player->money()));
 
-		if (!portfolioEstateMap.size())
+		if (portfolioEstateMap.size())
+			painter.drawText(width() - 50, 15, QString::number(m_player->money()));
+		else
 		{
 			painter.setPen(Qt::black);
 			painter.setBrush(Qt::white);
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.