From 84fdbe547d209711030672f6fb6f669127c0c192 Mon Sep 17 00:00:00 2001 From: real-yfprojects Date: Sat, 7 Jan 2023 11:29:09 +0100 Subject: [PATCH] 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. --- src/vorta/views/main_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vorta/views/main_window.py b/src/vorta/views/main_window.py index acf76aef..335f2aaf 100644 --- a/src/vorta/views/main_window.py +++ b/src/vorta/views/main_window.py @@ -180,7 +180,7 @@ def profile_delete_action(self): else: 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) def profile_add_action(self):