[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui portfolioview.cpp,1.46.6.2,1.46.6.3

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

Modified Files:
      Tag: KDE_3_1_BRANCH
	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.46.6.2
retrieving revision 1.46.6.3
diff -u -d -r1.46.6.2 -r1.46.6.3
--- portfolioview.cpp	12 Feb 2003 03:12:37 -0000	1.46.6.2
+++ portfolioview.cpp	14 Jul 2003 04:08:05 -0000	1.46.6.3
@@ -146,9 +146,10 @@
 		painter.setPen(Qt::white);
 		painter.setFont(QFont(KGlobalSettings::generalFont().family(), KGlobalSettings::generalFont().pointSize(), QFont::Bold));
 		painter.drawText(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.