Skip to content
Snippets Groups Projects
  • jkito's avatar
    9d62d5e3
    qt: pass char * to go functions from cpp helpers · 9d62d5e3
    jkito authored and Pea Nut's avatar Pea Nut committed
    instead of converting QString to GoString struct which is
    error prone, this changes SetTransport and UseLocation in
    backend.go to receive a char* as arg, which is  converted
    to Go string using the C.GoString helper
    
    this fixes a bug on macOS where changing preference options
    did not have any effect as the conversion of string was not
    working and empty values were passed to Go functions
    9d62d5e3
    History
    qt: pass char * to go functions from cpp helpers
    jkito authored and Pea Nut's avatar Pea Nut committed
    instead of converting QString to GoString struct which is
    error prone, this changes SetTransport and UseLocation in
    backend.go to receive a char* as arg, which is  converted
    to Go string using the C.GoString helper
    
    this fixes a bug on macOS where changing preference options
    did not have any effect as the conversion of string was not
    working and empty values were passed to Go functions