CAN-Example: Fix crash when open connect dialog after closing it


When the connect dialog is closed or the plugin has an error and no
new canDevice gets initialized, an additional click on connect crashes
the application.

Pick-to: 6.7
Change-Id: I48632766c180bddb2c07a88f662578318ced6d7e
Reviewed-by: André Hartmann <aha_1980@gmx.de>
commit7ae921cb5e1c0629427ed2f1843871558432da79
parent03ce22e29c05cbe139d480f8616b7ea0c25b2870
authorStefan Steinwasser <stefan-qt@kcxh6.de>
committerAndré Hartmann <aha_1980@gmx.de>
commit timeWed, 27 Mar 2024 06:28:56 +0000