From bccb3d674a0c2cc28d83590a94fca6f90a637a58 Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Wed, 21 Nov 2018 18:15:20 -0800 Subject: [PATCH] cleanup --- src/mainwindow.ui | 57 +++++++++++++++++++++++++-------------------- src/sendtab.cpp | 7 +----- src/senttxstore.cpp | 1 + 3 files changed, 34 insertions(+), 31 deletions(-) diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 4c103a9..7c93105 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -22,7 +22,7 @@ - 2 + 1 @@ -656,56 +656,63 @@ - - - - - 0 - 0 - - - - true - - - - + Label - - - - 40 - - - - + Update Label - + Address Balance - + + + + 40 + + + + TextLabel + + + + + 0 + 0 + + + + true + + + + + + + Address + + + diff --git a/src/sendtab.cpp b/src/sendtab.cpp index 9ffab4f..ceb44dd 100644 --- a/src/sendtab.cpp +++ b/src/sendtab.cpp @@ -45,10 +45,7 @@ void MainWindow::setupSendTab() { this->memoButtonClicked(1); }); setMemoEnabled(1, false); - - // Hack to equalize the sizes of the Memo and Address buttons - ui->MemoBtn1->setFixedWidth(ui->AddressBook1->width()); - + // This is the damnest thing ever. If we do AddressBook::readFromStorage() directly, the whole file // doesn't get read. It needs to run in a timer after everything has finished to be able to read // the file properly. @@ -222,8 +219,6 @@ void MainWindow::addAddressSection() { }); horizontalLayout_13->addWidget(MemoBtn1); setMemoEnabled(itemNumber, false); - // Hack to equalize the sizes of the Memo and Address buttons - MemoBtn1->setFixedWidth(addressBook1->width()); sendAddressLayout->addLayout(horizontalLayout_13); diff --git a/src/senttxstore.cpp b/src/senttxstore.cpp index bb77a8b..9237a3c 100644 --- a/src/senttxstore.cpp +++ b/src/senttxstore.cpp @@ -20,6 +20,7 @@ QString SentTxStore::writeableFile() { void SentTxStore::deleteHistory() { QFile data(writeableFile()); data.remove(); + data.close(); } QList SentTxStore::readSentTxFile() {