From 3b498d57cfad7ce7e59a0106175258a2060ed37b Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 18 Oct 2018 06:36:16 -0700 Subject: [PATCH] switch to window --- src/win/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/main.go b/src/win/main.go index 21667f32..5ee321de 100644 --- a/src/win/main.go +++ b/src/win/main.go @@ -154,7 +154,7 @@ func main() { go func(done chan bool) { for { if cr.WindowReceivingString != "" { - var question = widgets.QMessageBox_Question(nil, "croc", fmt.Sprintf("%s?", cr.WindowReceivingString), widgets.QMessageBox__Yes|widgets.QMessageBox__No, 0) + var question = widgets.QMessageBox_Question(window, "croc", fmt.Sprintf("%s?", cr.WindowReceivingString), widgets.QMessageBox__Yes|widgets.QMessageBox__No, 0) if question == widgets.QMessageBox__Yes { cr.WindowRecipientAccept = true labels[0].UpdateTextFromGoroutine(cr.WindowReceivingString)