Fix eReader auth in Calibre 6

This commit is contained in:
Florian Bach 2022-07-31 10:50:50 +02:00
parent bf4b6367bf
commit 55bea99913

View file

@ -270,9 +270,9 @@ class ConfigWidget(QWidget):
info_dialog(None, "Authorize eReader", msg, show=True, show_copy_button=False)
dialog = QFileDialog()
dialog.setFileMode(QFileDialog.Directory)
dialog.setFileMode(QFileDialog.FileMode.Directory)
opts = dialog.options()
opts |= QFileDialog.ShowDirsOnly
opts |= QFileDialog.Option.ShowDirsOnly
dialog.setOptions(opts)
if dialog.exec_():