Merge ~fritzdaswiesel/ubuntu/+source/ubiquity:fritzdaswiesel_bug1963697 into ubuntu/+source/ubiquity:ubuntu/devel

Proposed by Patrick T. Lehmann
Status: Needs review
Proposed branch: ~fritzdaswiesel/ubuntu/+source/ubiquity:fritzdaswiesel_bug1963697
Merge into: ubuntu/+source/ubiquity:ubuntu/devel
Diff against target: 55 lines (+5/-5)
4 files modified
ubiquity/frontend/kde_components/Keyboard.py (+1/-1)
ubiquity/frontend/kde_components/PartitionBar.py (+1/-1)
ubiquity/frontend/kde_components/Timezone.py (+2/-2)
ubiquity/frontend/kde_components/nmwidgets.py (+1/-1)
Reviewer Review Type Date Requested Status
Julian Andres Klode (community) Disapprove
git-ubuntu import Pending
Review via email: mp+416979@code.launchpad.net

Commit message

Bugfix for Ubiquity bug #1963697
Kubuntu installer scripts reported crashes due to unexpected types. The reason is the ICON_SIZE which, for some reason, was an odd number. Thus dividing it by 2 results in a float number.

Description of the change

With this patch applied, I successfully went through all default steps of the installer and got Kubuntu Jammy's current daily build installed on my VM.

To post a comment you must log in.
Revision history for this message
Julian Andres Klode (juliank) wrote :

The bug report states this has already been fixed, if the issue remains, please open a new bug report and merge.

review: Disapprove

Unmerged commits

e854536... by Patrick T. Lehmann

Bugfix for Ubiquity bug #1963697
Kubuntu installer scripts reported crashes due to unexpected
types. The reason is the ICON_SIZE which, for some reason, was
an odd number. Thus dividing it by 2 results in a float number.

With this patch applied, I went successfully through all default
steps if the installer and got Kubuntu Jammy's daily build
running on my VM.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/ubiquity/frontend/kde_components/Keyboard.py b/ubiquity/frontend/kde_components/Keyboard.py
index 822dc2f..08768fe 100644
--- a/ubiquity/frontend/kde_components/Keyboard.py
+++ b/ubiquity/frontend/kde_components/Keyboard.py
@@ -94,7 +94,7 @@ class Keyboard(QWidget):
94 def resizeEvent(self, re):94 def resizeEvent(self, re):
95 self.space = 695 self.space = 6
96 self.usable_width = self.width() - 296 self.usable_width = self.width() - 2
97 self.key_w = (self.usable_width - 14 * self.space) / 1597 self.key_w = int((self.usable_width - 14 * self.space) / 15)
9898
99 self.setMinimumHeight(self.key_w * 4 + self.space * 5)99 self.setMinimumHeight(self.key_w * 4 + self.space * 5)
100100
diff --git a/ubiquity/frontend/kde_components/PartitionBar.py b/ubiquity/frontend/kde_components/PartitionBar.py
index fc6e698..39be383 100644
--- a/ubiquity/frontend/kde_components/PartitionBar.py
+++ b/ubiquity/frontend/kde_components/PartitionBar.py
@@ -164,7 +164,7 @@ class PartitionsBar(QtWidgets.QWidget):
164 QtCore.Qt.TextSingleLine, text)164 QtCore.Qt.TextSingleLine, text)
165 painter.drawText(165 painter.drawText(
166 x + 18,166 x + 18,
167 labelY + v_off + textSize.height() / 2, text)167 labelY + v_off + int(textSize.height() / 2), text)
168 v_off += textSize.height()168 v_off += textSize.height()
169 painter.setFont(infoFont)169 painter.setFont(infoFont)
170 painter.setPen(QtGui.QColor(PartitionsBar.InfoColor))170 painter.setPen(QtGui.QColor(PartitionsBar.InfoColor))
diff --git a/ubiquity/frontend/kde_components/Timezone.py b/ubiquity/frontend/kde_components/Timezone.py
index ea62f3d..05bbb7b 100644
--- a/ubiquity/frontend/kde_components/Timezone.py
+++ b/ubiquity/frontend/kde_components/Timezone.py
@@ -126,9 +126,9 @@ class TimezoneMap(QtWidgets.QWidget):
126126
127 def heightForWidth(self, w):127 def heightForWidth(self, w):
128 size = self.pixmap.size()128 size = self.pixmap.size()
129 if w > size.width():129 if int(w) > size.width():
130 w = size.width()130 w = size.width()
131 return w * size.height() / size.width()131 return int(w * size.height() / size.width())
132132
133 def paintEvent(self, unused_paintEvent):133 def paintEvent(self, unused_paintEvent):
134 painter = QtGui.QPainter(self)134 painter = QtGui.QPainter(self)
diff --git a/ubiquity/frontend/kde_components/nmwidgets.py b/ubiquity/frontend/kde_components/nmwidgets.py
index 9edd7f3..edf300d 100644
--- a/ubiquity/frontend/kde_components/nmwidgets.py
+++ b/ubiquity/frontend/kde_components/nmwidgets.py
@@ -205,7 +205,7 @@ class QtNetworkStore(QtGui.QStandardItemModel, NetworkStore):
205 pixes.append(draw_level_pix(level))205 pixes.append(draw_level_pix(level))
206206
207 secure_icon = QtGui.QIcon.fromTheme("emblem-locked")207 secure_icon = QtGui.QIcon.fromTheme("emblem-locked")
208 secure_pix = secure_icon.pixmap(ICON_SIZE / 2, ICON_SIZE / 2)208 secure_pix = secure_icon.pixmap(int(ICON_SIZE / 2), int(ICON_SIZE / 2))
209 for level in range(5):209 for level in range(5):
210 pix2 = QtGui.QPixmap(pixes[level])210 pix2 = QtGui.QPixmap(pixes[level])
211 painter = QtGui.QPainter(pix2)211 painter = QtGui.QPainter(pix2)

Subscribers

People subscribed via source and target branches