[vlmc-devel] MainWindow: Fix missing initialization of undo view

Hugo Beauzée-Luyssen git at videolan.org
Tue Apr 1 23:16:24 CEST 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Apr  2 00:00:13 2014 +0300| [0d4a332c94b7fd164913899a72102678403e3fab] | committer: Hugo Beauzée-Luyssen

MainWindow: Fix missing initialization of undo view

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=0d4a332c94b7fd164913899a72102678403e3fab
---

 src/Gui/MainWindow.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index d83dec3..0f344a4 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -413,8 +413,8 @@ MainWindow::setupUndoRedoWidget()
                                       QT_TRANSLATE_NOOP( "DockWidgetManager", "History" ),
                                       Qt::AllDockWidgetAreas,
                                       QDockWidget::AllDockWidgetFeatures );
-    QUndoView       *undoRedoWidget = new QUndoView( dockedWidget );
-    DockWidgetManager::getInstance()->addDockedWidget( dockedWidget, undoRedoWidget, Qt::TopDockWidgetArea );
+    m_undoView = new QUndoView( dockedWidget );
+    DockWidgetManager::getInstance()->addDockedWidget( dockedWidget, m_undoView, Qt::TopDockWidgetArea );
 }
 
 void



More information about the Vlmc-devel mailing list