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:
@@ -92,13 +92,12 @@ QList<caf::PdmOptionItemInfo> RicSelectViewUI::calculateValueOptions(const caf::
|
|||||||
|
|
||||||
if (fieldNeedingOptions == &m_selectedView)
|
if (fieldNeedingOptions == &m_selectedView)
|
||||||
{
|
{
|
||||||
QIcon icon;
|
|
||||||
if (m_currentCase)
|
if (m_currentCase)
|
||||||
{
|
{
|
||||||
icon = m_currentCase->uiCapability()->uiIcon();
|
|
||||||
for (RimView* v : m_currentCase->views())
|
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));
|
options.push_back(caf::PdmOptionItemInfo(displayName, v, false, icon));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user