#4007 Create new combined import button and move the others to an opt… (#4021)

* #4007 Create new combined import button and move the others to an optional "Import"-toolbar

* #4007 Make sure we check that fileName vector isn't empty before accessing it
This commit is contained in:
Gaute Lindkvist
2019-01-31 09:02:09 +01:00
committed by GitHub
parent 61e9a2a696
commit 69b20a2aa9
9 changed files with 205 additions and 23 deletions

View File

@@ -529,11 +529,18 @@ void RiuMainWindow::createToolBars()
{
QToolBar* toolbar = addToolBar(tr("Standard"));
toolbar->setObjectName(toolbar->windowTitle());
toolbar->addAction(cmdFeatureMgr->action("RicImportGeneralDataFeature"));
toolbar->addAction(cmdFeatureMgr->action("RicOpenProjectFeature"));
toolbar->addAction(cmdFeatureMgr->action("RicSaveProjectFeature"));
}
{
QToolBar* toolbar = addToolBar(tr("Import"));
toolbar->setObjectName(toolbar->windowTitle());
toolbar->addAction(cmdFeatureMgr->action("RicImportEclipseCaseFeature"));
toolbar->addAction(cmdFeatureMgr->action("RicImportInputEclipseCaseFeature"));
toolbar->addAction(cmdFeatureMgr->action("RicImportSummaryCaseFeature"));
toolbar->addAction(cmdFeatureMgr->action("RicOpenProjectFeature"));
toolbar->addAction(cmdFeatureMgr->action("RicSaveProjectFeature"));
toolbar->hide();
}
{