aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-03-14 18:33:43 +0900
committerstoffu <stoffu@protonmail.ch>2018-03-14 18:33:43 +0900
commitc577abab61b5a9e4433726f6f24f4d075d0bee67 (patch)
tree3b7f5b67b1c985411f943d9a4b9636458c88875f /src
parentMerge pull request #3368 (diff)
downloadmonero-c577abab61b5a9e4433726f6f24f4d075d0bee67.tar.xz
wallet: fix auto low priority so that it takes effect only when saved default is 0
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index d845dd896..4f0288e02 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -5106,7 +5106,7 @@ uint64_t wallet2::adjust_mixin(uint64_t mixin) const
//----------------------------------------------------------------------------------------------------
uint32_t wallet2::adjust_priority(uint32_t priority)
{
- if (priority == 0 && get_default_priority() != 1 && auto_low_priority())
+ if (priority == 0 && m_default_priority == 0 && auto_low_priority())
{
try
{