1
0
Fork 0
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:
real-yfprojects 2023-01-07 11:29:09 +01:00 committed by Manu
parent b80e617f25
commit 84fdbe547d

View file

@ -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):