Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletview.cpp
Show All 13 Lines | |||||
#include "platformstyle.h" | #include "platformstyle.h" | ||||
#include "receivecoinsdialog.h" | #include "receivecoinsdialog.h" | ||||
#include "sendcoinsdialog.h" | #include "sendcoinsdialog.h" | ||||
#include "signverifymessagedialog.h" | #include "signverifymessagedialog.h" | ||||
#include "transactiontablemodel.h" | #include "transactiontablemodel.h" | ||||
#include "transactionview.h" | #include "transactionview.h" | ||||
#include "walletmodel.h" | #include "walletmodel.h" | ||||
#include "interfaces/node.h" | |||||
#include "ui_interface.h" | #include "ui_interface.h" | ||||
#include <QAction> | #include <QAction> | ||||
#include <QActionGroup> | #include <QActionGroup> | ||||
#include <QFileDialog> | #include <QFileDialog> | ||||
#include <QHBoxLayout> | #include <QHBoxLayout> | ||||
#include <QProgressDialog> | #include <QProgressDialog> | ||||
#include <QPushButton> | #include <QPushButton> | ||||
▲ Show 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | if (_walletModel) { | ||||
connect(_walletModel, SIGNAL(showProgress(QString, int)), this, | connect(_walletModel, SIGNAL(showProgress(QString, int)), this, | ||||
SLOT(showProgress(QString, int))); | SLOT(showProgress(QString, int))); | ||||
} | } | ||||
} | } | ||||
void WalletView::processNewTransaction(const QModelIndex &parent, int start, | void WalletView::processNewTransaction(const QModelIndex &parent, int start, | ||||
int end) { | int end) { | ||||
// Prevent balloon-spam when initial block download is in progress | // Prevent balloon-spam when initial block download is in progress | ||||
if (!walletModel || !clientModel || clientModel->inInitialBlockDownload()) { | if (!walletModel || !clientModel || | ||||
clientModel->node().isInitialBlockDownload()) { | |||||
return; | return; | ||||
} | } | ||||
TransactionTableModel *ttm = walletModel->getTransactionTableModel(); | TransactionTableModel *ttm = walletModel->getTransactionTableModel(); | ||||
if (!ttm || ttm->processingQueuedTransactions()) { | if (!ttm || ttm->processingQueuedTransactions()) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |