Commit 1eda22b1 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

Prompt: do not call QDialog.__init__() twice

This caused a segfault with PyQt I have been trying to find for many hours.
Pyside2 told me right away I must not do that.
parent ba46de79
......@@ -73,7 +73,6 @@ class Prompt(MustChooseKDialog, StrMixin):
def __init__(self, msg, icon=QMessageBox.Information,
buttons=KDialog.Ok, caption=None, default=None):
"""buttons is button codes or-ed like KDialog.Ok | KDialog.Cancel. First one is default."""
MustChooseKDialog.__init__(self)
if r'\n' in msg:
print(r'*********************** Fix this! Prompt gets \n in', msg)
msg = msg.replace(r'\n', '\n')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment