mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Tiny refactor
This commit is contained in:
parent
1f2e9babe6
commit
535d87c9c4
@ -147,7 +147,7 @@ RiuPlotMainWindow* RiuPlotMainWindow::instance()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RiuPlotMainWindow::wellSelected( QString wellName )
|
void RiuPlotMainWindow::onWellSelected( QString wellName )
|
||||||
{
|
{
|
||||||
RiuPlotMainWindow* plotWnd = instance();
|
RiuPlotMainWindow* plotWnd = instance();
|
||||||
if ( !plotWnd ) return;
|
if ( !plotWnd ) return;
|
||||||
|
@ -60,7 +60,7 @@ public:
|
|||||||
~RiuPlotMainWindow() override;
|
~RiuPlotMainWindow() override;
|
||||||
|
|
||||||
static RiuPlotMainWindow* instance();
|
static RiuPlotMainWindow* instance();
|
||||||
static void wellSelected( QString wellName );
|
static void onWellSelected( QString wellName );
|
||||||
|
|
||||||
QString mainWindowName() override;
|
QString mainWindowName() override;
|
||||||
|
|
||||||
|
@ -872,7 +872,7 @@ void RiuViewerCommands::handlePickAction( int winPosX, int winPosY, Qt::Keyboard
|
|||||||
{
|
{
|
||||||
bool allowActiveViewChange = dynamic_cast<Rim2dIntersectionView*>( m_viewer->ownerViewWindow() ) == nullptr;
|
bool allowActiveViewChange = dynamic_cast<Rim2dIntersectionView*>( m_viewer->ownerViewWindow() ) == nullptr;
|
||||||
|
|
||||||
RiuPlotMainWindow::wellSelected( eclipseWellSourceInfo->well()->name() );
|
RiuPlotMainWindow::onWellSelected( eclipseWellSourceInfo->well()->name() );
|
||||||
RiuMainWindow::instance()->selectAsCurrentItem( eclipseWellSourceInfo->well(), allowActiveViewChange );
|
RiuMainWindow::instance()->selectAsCurrentItem( eclipseWellSourceInfo->well(), allowActiveViewChange );
|
||||||
}
|
}
|
||||||
else if ( wellConnectionSourceInfo )
|
else if ( wellConnectionSourceInfo )
|
||||||
|
Loading…
Reference in New Issue
Block a user