diff options
| author | jacob1 <jfu614@gmail.com> | 2013-01-23 05:26:57 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-01-23 05:26:57 (GMT) |
| commit | 07aade6c4c6de5384f1ad57a28592d0ac885e4c3 (patch) | |
| tree | 8f5f2ebd261f821e39d278643c1a8f0358d04d12 /src/preview/PreviewView.cpp | |
| parent | 28fdb32bfb81f48170138c1b62fbca310ab84622 (diff) | |
| download | powder-07aade6c4c6de5384f1ad57a28592d0ac885e4c3.zip powder-07aade6c4c6de5384f1ad57a28592d0ac885e4c3.tar.gz | |
fix crash when pressing enter to open a save, and not logged in. Fix CRAY description
Diffstat (limited to 'src/preview/PreviewView.cpp')
| -rw-r--r-- | src/preview/PreviewView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preview/PreviewView.cpp b/src/preview/PreviewView.cpp index 238e4cc..4b12ea9 100644 --- a/src/preview/PreviewView.cpp +++ b/src/preview/PreviewView.cpp @@ -365,7 +365,7 @@ void PreviewView::OnMouseWheel(int x, int y, int d) void PreviewView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt) { - if ((key == KEY_ENTER || key == KEY_RETURN) && !addCommentBox->IsFocused()) + if ((key == KEY_ENTER || key == KEY_RETURN) && (!addCommentBox || !addCommentBox->IsFocused())) openButton->DoAction(); } |
