aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/managewindow.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/managewindow.go')
-rw-r--r--ui/managewindow.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/managewindow.go b/ui/managewindow.go
index 6ba49e65..0caf2357 100644
--- a/ui/managewindow.go
+++ b/ui/managewindow.go
@@ -202,6 +202,12 @@ func (mtw *ManageTunnelsWindow) WndProc(hwnd win.HWND, msg uint32, wParam, lPara
return 0
}
case raiseMsg:
+ if mtw.tunnelsPage == nil || mtw.tabs == nil {
+ mtw.Synchronize(func() {
+ mtw.SendMessage(msg, wParam, lParam)
+ })
+ return 0
+ }
if !mtw.Visible() {
mtw.tunnelsPage.listView.SelectFirstActiveTunnel()
if mtw.tabs.Pages().Len() != 3 {