Skip to content

Commit

Permalink
Core: Set tab title for MDIViewPyWrap
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed May 3, 2024
1 parent 960998e commit ede6c81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Gui/MDIViewPyWrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ MDIViewPyWrap::MDIViewPyWrap(const Py::Object& py, Gui::Document* pcDocument,QWi
QWidget* widget = ptr->widget();
if (widget) {
setCentralWidget(widget);
QString title = widget->windowTitle();
if (!title.isEmpty()) {
setWindowTitle(title);
}
}
}
catch (Py::Exception&) {
Expand Down

0 comments on commit ede6c81

Please sign in to comment.