Skip to content

Commit

Permalink
python3.8: fix DeprecationWarning in qt/paytoedit
Browse files Browse the repository at this point in the history
.../electrum/electrum/gui/qt/paytoedit.py:221: DeprecationWarning: an integer is required (got type float).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  self.setMinimumHeight(h)
  • Loading branch information
SomberNight committed Dec 10, 2019
1 parent 9d0ae2f commit d08ed64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electrum/gui/qt/paytoedit.py
Expand Up @@ -216,7 +216,7 @@ def paytomany(self):
def update_size(self):
lineHeight = QFontMetrics(self.document().defaultFont()).height()
docHeight = self.document().size().height()
h = docHeight * lineHeight + 11
h = round(docHeight * lineHeight + 11)
h = min(max(h, self.heightMin), self.heightMax)
self.setMinimumHeight(h)
self.setMaximumHeight(h)
Expand Down

0 comments on commit d08ed64

Please sign in to comment.