Browse Source

#41 Check connection to prevent crash

import_zecw
adityapk00 6 years ago
parent
commit
5e4b9bc74c
  1. 5
      src/mainwindow.cpp

5
src/mainwindow.cpp

@ -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;

Loading…
Cancel
Save