mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
#1288 Use view icon instead of case icon when selecting view
This commit is contained in:
1 parent
ced9342152
commit
4a66feae26
1 file changed
+2
-3
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user