Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 96b36cf

Browse files
committed
Fixed context menu not working with Mono. (fixes #181)
1 parent 774ec6f commit 96b36cf

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

‎ReClass.NET/Forms/LogForm.Designer.cs‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎ReClass.NET/Forms/ProcessInfoForm.Designer.cs‎

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎ReClass.NET/Forms/ProcessInfoForm.cs‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.ComponentModel;
23
using System.Data;
34
using System.Diagnostics.Contracts;
45
using System.Drawing;
@@ -129,6 +130,13 @@ private void SelectRow_CellMouseDown(object sender, DataGridViewCellMouseEventAr
129130
}
130131
}
131132

133+
private void contextMenuStrip_Opening(object sender, CancelEventArgs e)
134+
{
135+
var sourceControl = (sender as ContextMenuStrip)?.SourceControl;
136+
137+
e.Cancel = sourceControl == null || (sourceControl == modulesDataGridView && GetSelectedModule() == null) || (sourceControl == sectionsDataGridView && GetSelectedSection() == null);
138+
}
139+
132140
private void setCurrentClassAddressToolStripMenuItem_Click(object sender, EventArgs e)
133141
{
134142
LinkedWindowFeatures.SetCurrentClassAddress(GetSelectedAddress(sender));

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /