Skip to content

Commit e095131

Browse files
author
Jayson Ragasa
committed
fix simple bug after pressing close for the MDI button
1 parent 4aeb540 commit e095131

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RemoteDesktopClient/Forms/RemoteDesktopClient.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ void tabMDIChild_SelectionChanged(object sender, EventArgs e)
305305

306306
void tabMDIChild_ClosePressed(object sender, EventArgs e)
307307
{
308-
this.ActiveMdiChild.Close();
308+
if(this.ActiveMdiChild != null)
309+
this.ActiveMdiChild.Close();
309310
}
310311

311312
#endregion

0 commit comments

Comments
 (0)