mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
* #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:
@@ -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();
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user