Fix some regressions in Python editor:

* show again asterisk when modifying the content
* show still only filename in tab when modifying from outside
This commit is contained in:
wmayer
2019-11-29 20:02:34 +01:00
parent ead9c5c670
commit 5e36da5c5a

View File

@@ -326,10 +326,10 @@ void DlgMacroExecuteImp::on_editButton_clicked()
PythonEditor* editor = new PythonEditor();
editor->setWindowIcon(Gui::BitmapFactory().iconFromTheme("applications-python"));
PythonEditorView* edit = new PythonEditorView(editor, getMainWindow());
edit->setDisplayName(PythonEditorView::FileName);
edit->open(file);
edit->resize(400, 300);
getMainWindow()->addWindow(edit);
edit->setWindowTitle(item->text(0));
if (mitem->systemWide) {
editor->setReadOnly(true);