Addwidget safety

This commit is contained in:
Aditya Kulkarni
2018-11-14 22:30:11 -08:00
parent 2ade31b69e
commit 6bfbdcb8d7

View File

@@ -67,10 +67,9 @@ RPC::~RPC() {
void RPC::setEZcashd(QProcess* p) {
ezcashd = p;
if (ezcashd) {
if (ezcashd && ui->tabWidget->widget(4) == nullptr) {
ui->tabWidget->addTab(main->zcashdtab, "zcashd");
}
}
void RPC::setConnection(Connection* c) {