mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1288 Use view icon instead of case icon when selecting view
This commit is contained in:
parent
ced9342152
commit
4a66feae26
@ -92,13 +92,12 @@ QList<caf::PdmOptionItemInfo> RicSelectViewUI::calculateValueOptions(const caf::
|
||||
|
||||
if (fieldNeedingOptions == &m_selectedView)
|
||||
{
|
||||
QIcon icon;
|
||||
if (m_currentCase)
|
||||
{
|
||||
icon = m_currentCase->uiCapability()->uiIcon();
|
||||
for (RimView* v : m_currentCase->views())
|
||||
{
|
||||
QString displayName = m_currentCase->caseUserDescription() + ": " + v->name;
|
||||
QIcon icon = v->uiCapability()->uiIcon();
|
||||
QString displayName = v->name;
|
||||
|
||||
options.push_back(caf::PdmOptionItemInfo(displayName, v, false, icon));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user