mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-12 15:47:27 +05:00
Fix for bug IPAL9242(3.0.0: Activation of OCC viewer breaks current VTK viewer in Mesh).
This commit is contained in:
parent
576824da04
commit
53fd9e1ce5
@ -3053,7 +3053,8 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
// Display / Erase
|
// Display / Erase
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
aClient = "($client in {'VTKViewer' 'ObjectBrowser'})";
|
aClient = "($client in {'VTKViewer' 'ObjectBrowser'})";
|
||||||
QString aRule = aClient + " and " + aType + " and " + aSelCount;
|
QString anActiveVTK = QString("activeView = '%1'").arg(VTKViewer_Viewer::Type());
|
||||||
|
QString aRule = aClient + " and " + aType + " and " + aSelCount + " and " + anActiveVTK;
|
||||||
popupMgr()->insert( action( 301 ), -1, -1 ); // DISPLAY
|
popupMgr()->insert( action( 301 ), -1, -1 ); // DISPLAY
|
||||||
popupMgr()->setRule( action( 301 ), aRule + "&&" + isNotEmpty + "&&" + isInvisible, true);
|
popupMgr()->setRule( action( 301 ), aRule + "&&" + isNotEmpty + "&&" + isInvisible, true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user