diff --git a/插件库/Lskj.Main/FrmSwap.cs b/插件库/Lskj.Main/FrmSwap.cs index d131eb3..e50078e 100644 --- a/插件库/Lskj.Main/FrmSwap.cs +++ b/插件库/Lskj.Main/FrmSwap.cs @@ -582,10 +582,12 @@ namespace Lskj.Main if (msg.Msg == WM_SYSCOMMAND && ((int)msg.WParam == SC_CLOSE)) { - if (string.IsNullOrWhiteSpace(_ledgerName)) return; - if (!_ledgerName.Equals(cbLedger.EditValue + "")) + if (!string.IsNullOrWhiteSpace(_ledgerName)) { - this.StartLedger(_ledgerName); + if (!_ledgerName.Equals(cbLedger.EditValue + "")) + { + this.StartLedger(_ledgerName); + } } } base.WndProc(ref msg);