mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-05 13:47:06 -06:00
Hide the main plot collection level in the project tree
"Well Log Plots" will be visible on the top level if there are plots.
This commit is contained in:
1 parent
5d576aed14
commit
46a941348b
3 files changed
+21
-5
No files matched your search
@@ -48,6 +48,8 @@
|
||||
#include "RimWellPathCollection.h"
|
||||
#include "RimWellPathImport.h"
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimWellLogPlotCollection.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
@@ -863,7 +865,16 @@ void RimProject::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QS
|
||||
|
||||
uiTreeOrdering.add(scriptCollection());
|
||||
|
||||
if (mainPlotCollection) uiTreeOrdering.add(mainPlotCollection());
|
||||
if (mainPlotCollection)
|
||||
{
|
||||
if (mainPlotCollection->wellLogPlotCollection())
|
||||
{
|
||||
if (mainPlotCollection->wellLogPlotCollection()->wellLogPlots().size() > 0)
|
||||
{
|
||||
uiTreeOrdering.add(mainPlotCollection->wellLogPlotCollection());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
uiTreeOrdering.setForgetRemainingFields(true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user