There is no need for such workarounds. Decide which address should get the remaining funds from the decreased fee and instead of the amount, use exclamation mark ('!'). This will force Electrum to send all the remaining coins to that address. There should be a much easier way in the 'Advanced preview' not to create a change address, though.
Thanks for chipping in, but "deciding which address should get the remaining funds"? I have no idear where the gui would allow me to specify the exact change address... And even if it did allow this, i'd have to manually edit this value each time i wanted to clean out my wallet...
The exclamation mark results in following error:
I know a long time ago, this was the way of emptying out your wallet, but it seems to be invalid in version 4.0.2, or at least, it shows an error..
Interestingly... I can't replicate this bug.
I just tested it with 2 different wallets (one on mainnet, one on testnet) and set it up to send all the funds using the max. If I adjust the fee slider it doesn't create any new outputs... it still only has the one output??!?
Also, the "change" address that your wallet is generating is highlighted in "green"... which neans that it is a "receive" address doesn't it? Is that wallet a "standard" wallet with seed etc, or imported with private keys?
It's a wallet with imported private keys, the change funded the same address whose unspent outputs i was spending... Maybe that's the difference... Also, i didn't use the slider, but rather manually entered the fee.
EDIT: tried a "normal" wallet, couldn't replicate the issue there either... It was either a glitch, something i did wrong, or it only happens with wallets with manually imported private keys...
I actually noticed this "bug" on 4.0.1, then upgraded to 4.0.2 and saw the exact same behaviour... That's why i opened this topic.