From cdbb13f9f4bb659e4008cabba805df4a37b31673 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 15 Feb 2019 09:04:55 +0100 Subject: [PATCH] System : Set object name of toolbar to be able to serialize toolbar state --- ApplicationCode/UserInterface/RiuMainWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ApplicationCode/UserInterface/RiuMainWindow.cpp b/ApplicationCode/UserInterface/RiuMainWindow.cpp index fb9f67dde1..e6971b5b78 100644 --- a/ApplicationCode/UserInterface/RiuMainWindow.cpp +++ b/ApplicationCode/UserInterface/RiuMainWindow.cpp @@ -546,6 +546,7 @@ void RiuMainWindow::createToolBars() { #ifdef USE_ODB_API QToolBar* toolbar = addToolBar(tr("Import GeoMech")); + toolbar->setObjectName(toolbar->windowTitle()); toolbar->addAction(cmdFeatureMgr->action("RicImportGeoMechCaseFeature")); toolbar->addAction(cmdFeatureMgr->action("RicImportGeoMechCaseTimeStepFilterFeature")); toolbar->addAction(cmdFeatureMgr->action("RicImportElementPropertyFeature"));