diff -Nru usb-creator-0.3.5ubuntu18.04.1/debian/changelog usb-creator-0.3.5ubuntu18.04.2/debian/changelog --- usb-creator-0.3.5ubuntu18.04.1/debian/changelog 2019-06-18 11:19:59.000000000 -0700 +++ usb-creator-0.3.5ubuntu18.04.2/debian/changelog 2019-07-16 10:40:51.000000000 -0700 @@ -1,3 +1,10 @@ +usb-creator (0.3.5ubuntu18.04.2) bionic; urgency=medium + + * Move progress dialog setup to the install method on the KDE frontend. + Thanks to Paul Worrall for the patch! (LP: #1629715) + + -- Walter Lapchynski Tue, 16 Jul 2019 10:40:51 -0700 + usb-creator (0.3.5ubuntu18.04.1) bionic-security; urgency=medium * Unmount device during image operation so a single policykit prompt can diff -Nru usb-creator-0.3.5ubuntu18.04.1/usbcreator/frontends/kde/frontend.py usb-creator-0.3.5ubuntu18.04.2/usbcreator/frontends/kde/frontend.py --- usb-creator-0.3.5ubuntu18.04.1/usbcreator/frontends/kde/frontend.py 2015-12-11 06:19:42.000000000 -0800 +++ usb-creator-0.3.5ubuntu18.04.2/usbcreator/frontends/kde/frontend.py 2019-07-16 10:40:48.000000000 -0700 @@ -179,17 +179,6 @@ self.__mainWindow.ui_dest_list.header().setSectionResizeMode(0, QHeaderView.Stretch) self.__mainWindow.ui_dest_list.header().setSectionResizeMode(1, QHeaderView.ResizeToContents) self.__mainWindow.ui_dest_list.header().setSectionResizeMode(2, QHeaderView.ResizeToContents) - self.progress_bar = QProgressDialog("",_('Cancel'),0,100,self.__mainWindow) - #set title of progress window (same as gtk frontend) - self.progress_bar.setWindowTitle(_('Installing')) - #prevent progress bar from emitting reset on reaching max value (and auto closing) - self.progress_bar.setAutoReset(False) - #force immediate showing, rather than waiting... - self.progress_bar.setMinimumDuration(0) - #must disconnect the canceled() SIGNAL, otherwise the progress bar is actually destroyed - self.progress_bar.canceled.disconnect(self.progress_bar.cancel) - #now we connect our own signal to display a warning dialog instead - self.progress_bar.canceled.connect(self.warning_dialog) #show the window self.__mainWindow.show() @@ -434,6 +423,18 @@ self.__mainWindow.hide() self.delete_timeout(self.update_loop) + + self.progress_bar = QProgressDialog("",_('Cancel'),0,100,self.__mainWindow) + #set title of progress window (same as gtk frontend) + self.progress_bar.setWindowTitle(_('Installing')) + #prevent progress bar from emitting reset on reaching max value (and auto closing) + self.progress_bar.setAutoReset(False) + #force immediate showing, rather than waiting... + self.progress_bar.setMinimumDuration(0) + #must disconnect the canceled() SIGNAL, otherwise the progress bar is actually destroyed + self.progress_bar.canceled.disconnect(self.progress_bar.cancel) + #now we connect our own signal to display a warning dialog instead + self.progress_bar.canceled.connect(self.warning_dialog) starting_up = _('Starting up') self.progress_bar.setLabelText(starting_up) self.progress_bar.show()