Skip to content

Commit

Permalink
StyledEdit::StatusView: prevent duplicating context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
siarzhuk committed Jan 18, 2013
1 parent 8a85cd4 commit 29155ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/apps/stylededit/StatusView.cpp
Expand Up @@ -162,6 +162,12 @@ StatusView::MouseDown(BPoint where)
if (where.x < fCellWidth[kPositionCell])
return;

int32 clicks = 0;
BMessage* message = Window()->CurrentMessage();
if (message != NULL
&& message->FindInt32("clicks", &clicks) == B_OK && clicks > 1)
return;

BPopUpMenu *menu = new BPopUpMenu(B_EMPTY_STRING, false, false);
float left = fCellWidth[kPositionCell] + fCellWidth[kEncodingCell];
if (where.x < left)
Expand Down

0 comments on commit 29155ba

Please sign in to comment.