do nothing if double click on close is not set

This commit is contained in:
Sean Kaim
2019-01-08 10:14:57 -05:00
parent 4405a1fbf7
commit f180a5cd70

View File

@@ -1356,16 +1356,17 @@ namespace mRemoteNG.UI.Tabs
{
if (m.Msg == (int)Msgs.WM_LBUTTONDBLCLK)
{
if (Settings.Default.DoubleClickOnTabClosesIt)
// If the option is not set, do nothing. Do not send the message to base.
if (!Settings.Default.DoubleClickOnTabClosesIt) return;
// Option is set, close the tab, then send to base.
DockPane.CloseActiveContent();
if (PatchController.EnableMemoryLeakFix == true)
{
DockPane.CloseActiveContent();
if (PatchController.EnableMemoryLeakFix == true)
{
ContentClosed();
}
return;
ContentClosed();
}
return;
}
base.WndProc(ref m);