mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor : Hide undo stack behind environmentvariable DEVEL
Move geomech tab after scripting
This commit is contained in:
@@ -133,7 +133,10 @@ RiuMainWindow::RiuMainWindow()
|
||||
|
||||
m_dragDropInterface = std::unique_ptr<caf::PdmUiDragDropInterface>( new RiuDragDrop() );
|
||||
|
||||
m_undoView->setStack( caf::CmdExecCommandManager::instance()->undoStack() );
|
||||
if ( m_undoView )
|
||||
{
|
||||
m_undoView->setStack( caf::CmdExecCommandManager::instance()->undoStack() );
|
||||
}
|
||||
connect( caf::CmdExecCommandManager::instance()->undoStack(),
|
||||
SIGNAL( indexChanged( int ) ),
|
||||
SLOT( slotRefreshUndoRedoActions() ) );
|
||||
@@ -836,7 +839,7 @@ void RiuMainWindow::createDockPanels()
|
||||
dockWidget->hide();
|
||||
}
|
||||
|
||||
if ( RiaPreferences::current()->useUndoRedo() )
|
||||
if ( m_undoView && RiaPreferences::current()->useUndoRedo() )
|
||||
{
|
||||
QDockWidget* dockWidget = new QDockWidget( "Undo Stack", this );
|
||||
dockWidget->setObjectName( RiuDockWidgetTools::undoStackName() );
|
||||
|
||||
Reference in New Issue
Block a user