mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-04 04:32:20 +02:00
[qt] Avoid potential null pointer dereference in TransactionView::exportClicked()
This commit is contained in:
@ -336,6 +336,10 @@ void TransactionView::changedAmount(const QString &amount)
|
|||||||
|
|
||||||
void TransactionView::exportClicked()
|
void TransactionView::exportClicked()
|
||||||
{
|
{
|
||||||
|
if (!model || !model->getOptionsModel()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// CSV is currently the only supported format
|
// CSV is currently the only supported format
|
||||||
QString filename = GUIUtil::getSaveFileName(this,
|
QString filename = GUIUtil::getSaveFileName(this,
|
||||||
tr("Export Transaction History"), QString(),
|
tr("Export Transaction History"), QString(),
|
||||||
|
Reference in New Issue
Block a user