mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
Pass int to QPoint
constructor.
Before a float was passed to `QPoint(int, int)`. While this worked fine, on some machines it lead to an error. Fixes #1535. * src/vorta/views/main_window.py : cast division value to int.
This commit is contained in:
parent
b80e617f25
commit
84fdbe547d
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ def profile_delete_action(self):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
warn = self.tr("Cannot delete the last profile.")
|
warn = self.tr("Cannot delete the last profile.")
|
||||||
point = QPoint(0, self.profileDeleteButton.size().height() / 2)
|
point = QPoint(0, int(self.profileDeleteButton.size().height() / 2))
|
||||||
QToolTip.showText(self.profileDeleteButton.mapToGlobal(point), warn)
|
QToolTip.showText(self.profileDeleteButton.mapToGlobal(point), warn)
|
||||||
|
|
||||||
def profile_add_action(self):
|
def profile_add_action(self):
|
||||||
|
|
Loading…
Reference in a new issue