summaryrefslogtreecommitdiff
path: root/src/gui/preview
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-07-27 16:47:59 (GMT)
committer jacob1 <jfu614@gmail.com>2013-07-27 16:47:59 (GMT)
commita328fc519e4b2eec15f6a0b81f39bad78bf4f82e (patch)
treee6ac5fad86c84246df54e9637cadfe9e736f29df /src/gui/preview
parent5518a6bcd6f1bd2a70c0f5bd23814e9d79c9bedc (diff)
downloadpowder-a328fc519e4b2eec15f6a0b81f39bad78bf4f82e.zip
powder-a328fc519e4b2eec15f6a0b81f39bad78bf4f82e.tar.gz
fix your name being red on your own saves, not yellow
Diffstat (limited to 'src/gui/preview')
-rw-r--r--src/gui/preview/PreviewView.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/preview/PreviewView.cpp b/src/gui/preview/PreviewView.cpp
index de17531..9d091e1 100644
--- a/src/gui/preview/PreviewView.cpp
+++ b/src/gui/preview/PreviewView.cpp
@@ -574,10 +574,10 @@ void PreviewView::NotifyCommentsChanged(PreviewModel * sender)
tempUsername = new ui::Label(ui::Point(5, currentY+3), ui::Point(Size.X-((XRES/2) + 13), 16), comments->at(i)->authorNameFormatted);
tempUsername->Appearance.HorizontalAlign = ui::Appearance::AlignLeft;
tempUsername->Appearance.VerticalAlign = ui::Appearance::AlignBottom;
- if (sender->GetSave() && sender->GetSave()->GetUserName() == comments->at(i)->authorName)
- tempUsername->SetTextColour(ui::Colour(255, 100, 100));
- else if (Client::Ref().GetAuthUser().ID && Client::Ref().GetAuthUser().Username == comments->at(i)->authorName)
+ if (Client::Ref().GetAuthUser().ID && Client::Ref().GetAuthUser().Username == comments->at(i)->authorName)
tempUsername->SetTextColour(ui::Colour(255, 255, 100));
+ else if (sender->GetSave() && sender->GetSave()->GetUserName() == comments->at(i)->authorName)
+ tempUsername->SetTextColour(ui::Colour(255, 100, 100));
currentY += 16;
commentComponents.push_back(tempUsername);