don't allow context menu when the HT property is turned off.

This commit is contained in:
pinkerton%netscape.com 1998-07-28 00:45:52 +00:00
Родитель c62b6c776c
Коммит 0f904f5cfd
1 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -27,6 +27,9 @@
#include "CHyperTreeFlexTable.h"
#include "Netscape_constants.h"
#include "CNavCenterSelectorPane.h"
#include "URDFUtilities.h"
extern RDF_NCVocab gNavCenter; // RDF vocab struct for NavCenter
//
@ -93,10 +96,14 @@ CNavCenterContextMenuAttachment :: NewHTContextMenuCursor ( )
TableIndexT selectedRow = 0;
if ( table->GetNextSelectedRow(selectedRow) )
clickInBackground = PR_FALSE;
}
// only allow context menu if the "useSelection" flag is true for the current view
if ( URDFUtilities::PropertyValueBool(HT_TopNode(table->GetHTView()), gNavCenter->useSelection) )
return NULL;
}
return HT_NewContextualMenuCursor ( table->GetHTView(), PR_FALSE, clickInBackground );
} // NewHTContextMenuCursor