mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Fixed crash that would occur when double clicking inside a connection window after disconnecting
This commit is contained in:
@@ -505,6 +505,7 @@ namespace mRemoteNG.UI.Window
|
||||
try
|
||||
{
|
||||
Crownwood.Magic.Controls.TabPage selectedTab = TabController.SelectedTab;
|
||||
if (selectedTab == null) return;
|
||||
if (Settings.Default.ConfirmCloseConnection == (int)ConfirmCloseEnum.All)
|
||||
{
|
||||
DialogResult result = CTaskDialog.MessageBox(this, GeneralAppInfo.ProdName, string.Format(Language.strConfirmCloseConnectionMainInstruction, selectedTab.Title), "", "", "", Language.strCheckboxDoNotShowThisMessageAgain, ETaskDialogButtons.YesNo, ESysIcons.Question, ESysIcons.Question);
|
||||
|
||||
Reference in New Issue
Block a user