Commit bcc5d44e authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen

MainWindow: Set objectName of dockWidget(s)

When we want to call QMainWindow::saveState(), we have to ensure the following:

"The objectName property is used to identify each QToolBar and QDockWidget. You should make sure that this property is unique for each QToolBar and QDockWidget you add to the QMainWindow"
Signed-off-by: 's avatarHugo Beauzée-Luyssen <>
parent 0d344b4a
......@@ -649,6 +649,7 @@ MainWindow::dockWidget( QWidget* widget, Qt::DockWidgetArea startArea )
dock->setAllowedAreas( Qt::AllDockWidgetAreas );
widget->setParent( dock );
dock->setWidget( widget );
dock->setObjectName( widget->objectName() );
addDockWidget( startArea, dock );
registerWidgetInWindowMenu( dock );
return dock;
Markdown is supported
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