Skip to content

Commit

Permalink
Add empty QUndoView to QgsUndoWidget for initial show
Browse files Browse the repository at this point in the history
- Shows disabled view instead of blank dock area (same as creating new project after closing project)
  • Loading branch information
dakcarto committed Jan 26, 2013
1 parent 298f0c0 commit 96565d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsundowidget.cpp
Expand Up @@ -35,7 +35,8 @@ QgsUndoWidget::QgsUndoWidget( QWidget * parent, QgsMapCanvas * mapCanvas )
undoButton->setDisabled( true );
redoButton->setDisabled( true );
mMapCanvas = mapCanvas;
mUndoView = NULL;
mUndoView = new QUndoView( dockWidgetContents );
gridLayout->addWidget( mUndoView, 0, 0, 1, 2 );
mUndoStack = NULL;
mPreviousIndex = 0;
mPreviousCount = 0;
Expand Down

0 comments on commit 96565d1

Please sign in to comment.