#41 Check connection to prevent crash
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user