Set window title for viewerwidget

This commit is contained in:
Jan Möbius
2023-09-01 12:24:31 +02:00
parent 446c442a50
commit aaf3fb292c

View File

@@ -188,7 +188,10 @@ MeshViewerWidgetT<M>::open_mesh(const char* _filename, IO::Options _opt)
updateGL();
#endif
setWindowTitle(QFileInfo(_filename).fileName());
if ( this->parentWidget() != nullptr )
this->parentWidget()->setWindowTitle(QFileInfo(_filename).fileName());
else
setWindowTitle(QFileInfo(_filename).fileName());
// loading done
return true;