#41 Check connection to prevent crash

This commit is contained in:
adityapk00
2018-11-10 13:09:23 -08:00
parent 9853dc17a0
commit 5e4b9bc74c

View File

@@ -561,6 +561,11 @@ void MainWindow::postToZBoard() {
}
void MainWindow::doImport(QList<QString>* keys) {
if (rpc->getConnection() == nullptr) {
// No connection, just return
return;
}
if (keys->isEmpty()) {
delete keys;