[Fix]Close #1013
This commit is contained in:
parent
176c4f26b1
commit
030e448d37
@ -1111,7 +1111,7 @@ class TradingWidget(QtWidgets.QFrame):
|
||||
# 自动填写信息
|
||||
self.comboPriceType.setCurrentIndex(self.priceTypeList.index(PRICETYPE_LIMITPRICE))
|
||||
self.comboOffset.setCurrentIndex(self.offsetList.index(OFFSET_CLOSE))
|
||||
self.spinVolume.setValue(pos.position)
|
||||
self.lineVolume.setText(str(pos.position))
|
||||
|
||||
if pos.direction == DIRECTION_LONG or pos.direction == DIRECTION_NET:
|
||||
self.comboDirection.setCurrentIndex(self.directionList.index(DIRECTION_SHORT))
|
||||
|
Loading…
Reference in New Issue
Block a user