Experimental support for headless mode

This commit is contained in:
Aditya Kulkarni
2019-02-26 13:54:22 -08:00
parent 2ff1718fab
commit 4e259d6e6c
6 changed files with 332 additions and 48 deletions

View File

@@ -154,6 +154,10 @@ void MainWindow::restoreSavedStates() {
ui->transactionsTable->horizontalHeader()->restoreState(s.value("tratablegeometry").toByteArray());
}
void MainWindow::doClose() {
closeEvent(nullptr);
}
void MainWindow::closeEvent(QCloseEvent* event) {
QSettings s;
@@ -167,7 +171,8 @@ void MainWindow::closeEvent(QCloseEvent* event) {
rpc->shutdownZcashd();
// Bubble up
QMainWindow::closeEvent(event);
if (event)
QMainWindow::closeEvent(event);
}
void MainWindow::turnstileProgress() {