summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui.go b/gui.go
index f9744bf..2853dd6 100644
--- a/gui.go
+++ b/gui.go
@@ -122,10 +122,12 @@ func ErrorWindow(msg1 string, msg2 string) {
// defaultButtonClick() below when the button is found
// in the AllButtons %map
// TODO: clean up the text above
+// TODO: remove this all together going only to main()
func mouseClick(b *ButtonMap) {
- log.Println("gui.mouseClick() START b =", b)
-
- if (b != nil) {
+ if (b == nil) {
+ log.Println("gui.mouseClick() START b = nil")
+ } else {
+ log.Println("gui.mouseClick() START b.Action =", b.Action)
if (b.Action == "createAddVmBox") {
log.Println("gui.mouseClick() createAddVmBox for b =", b)
createAddVmBox(Data.cloudTab, "Create New Virtual Machine", mouseClick)