diff --git a/hplip-add-ppd-crash.patch b/hplip-add-ppd-crash.patch index 70e9a3b..7117860 100644 --- a/hplip-add-ppd-crash.patch +++ b/hplip-add-ppd-crash.patch @@ -12,3 +12,20 @@ index 976a42c..3604dd7 100755 else: nickname = open(file_path, 'r').read(4096) +diff --git a/ui5/setupdialog.py b/ui5/setupdialog.py +index ac45357..a6dacf0 100644 +--- a/ui5/setupdialog.py ++++ b/ui5/setupdialog.py +@@ -772,9 +772,9 @@ class SetupDialog(QDialog, Ui_Dialog): + + + def OtherPPDButton_clicked(self, b): +- ppd_file = to_unicode(QFileDialog.getOpenFileName(self, self.__tr("Select PPD File"), +- sys_conf.get('dirs', 'ppd'), +- self.__tr("PPD Files (*.ppd *.ppd.gz);;All Files (*)"))) ++ ppd_file = QFileDialog.getOpenFileName(self, self.__tr("Select PPD File"), ++ sys_conf.get('dirs', 'ppd'), ++ self.__tr("PPD Files (*.ppd *.ppd.gz);;All Files (*)"))[0] + + if ppd_file and os.path.exists(ppd_file): + self.print_ppd = (ppd_file, cups.getPPDDescription(ppd_file)) diff --git a/hplip.spec b/hplip.spec index 4f8e68d..7bde535 100644 --- a/hplip.spec +++ b/hplip.spec @@ -772,6 +772,7 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop %changelog * Mon Oct 12 2020 Zdenek Dohnal - 3.20.9-2 - fix the patch for adding uncompressed ppd via CLI +- fix the patch for GUI too * Fri Oct 02 2020 Zdenek Dohnal - 3.20.9-1 - 3.20.9