forked from qt-creator/qt-creator
Bookmarks: Disable context menu for disassembler view
This is a hack for now. Task-number: QTCREATORBUG-10410 Change-Id: I1f6cdc31614231b81588b100a5a03a4308013774 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -183,6 +183,10 @@ void BookmarksPlugin::editorAboutToClose(Core::IEditor *editor)
|
||||
void BookmarksPlugin::requestContextMenu(TextEditor::ITextEditor *editor,
|
||||
int lineNumber, QMenu *menu)
|
||||
{
|
||||
// Don't set bookmarks in disassembler views.
|
||||
if (editor->document()->property("DisassemblerView").toBool())
|
||||
return;
|
||||
|
||||
m_bookmarkMarginActionLineNumber = lineNumber;
|
||||
m_bookmarkMarginActionFileName = editor->document()->filePath();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user