mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Comment out lines that aren't being used. Also fixes build bustage.
This commit is contained in:
parent
7177ae2212
commit
0b0131614b
@ -97,9 +97,15 @@ CNavCenterContextMenuAttachment :: NewHTContextMenuCursor ( )
|
||||
if ( table->GetNextSelectedRow(selectedRow) )
|
||||
clickInBackground = PR_FALSE;
|
||||
|
||||
#if 0
|
||||
// This will cause a crash if we return NULL because the context menu code assumes a menu will
|
||||
// be created. Not sure what the right fix is right now, but leaving context menus on is not
|
||||
// that bad (pinkerton)
|
||||
// only allow context menu if the "useSelection" flag is true for the current view
|
||||
if ( URDFUtilities::PropertyValueBool(HT_TopNode(table->GetHTView()), gNavCenter->useSelection) )
|
||||
if ( URDFUtilities::PropertyValueBool(HT_TopNode(table->GetHTView()), gNavCenter->useSelection, true) == false)
|
||||
return NULL;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
return HT_NewContextualMenuCursor ( table->GetHTView(), PR_FALSE, clickInBackground );
|
||||
|
Loading…
Reference in New Issue
Block a user