Skip to content

Commit

Permalink
Fix windows crash
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapk00 committed Oct 22, 2018
1 parent 7128ad1 commit 972140e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ std::function<void(bool)> MainWindow::addZAddrsToComboList(bool sapling) {
ui->listRecieveAddresses->clear();

std::for_each(addrs->begin(), addrs->end(), [=] (auto addr) {
if ( (sapling && settings->isSaplingAddress(addr)) ||
(!sapling && !settings->isSaplingAddress(addr)))
if ( (sapling && Settings::getInstance()->isSaplingAddress(addr)) ||
(!sapling && !Settings::getInstance()->isSaplingAddress(addr)))
ui->listRecieveAddresses->addItem(addr);
});

Expand Down
1 change: 0 additions & 1 deletion src/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class MainWindow : public QMainWindow
void importPrivKeys();

RPC* rpc;
Settings* settings;

QMovie* loadingMovie;
};
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/mkwinrelease.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Move-Item release/zcash-qt-wallet.exe release/$target | Out-Null

echo "Copying"
# No need for deploy, since we're using a static Qt5 library
# & "$Env:QT_STATIC\bin\windeployqt.exe" release/$target/zcash-qt-wallet.exe *>$null
& "$Env:QT_STATIC\bin\windeployqt.exe" release/$target/zcash-qt-wallet.exe *>$null
Copy-Item LICENSE release/$target | Out-Null
Copy-Item README.md release/$target | Out-Null

Expand Down

0 comments on commit 972140e

Please sign in to comment.