From e054d87d015f5f445ddf6f184b79be4a9c8035c3 Mon Sep 17 00:00:00 2001 From: dnk-88 Date: Wed, 13 Jul 2011 04:49:09 +0300 Subject: [PATCH] Fixed: #1301 A temporary fix instead of the future of undo command delete landscape. --HG-- branch : gsoc2011-worldeditorqt --- .../src/plugins/landscape_editor/landscape_editor_window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/landscape_editor/landscape_editor_window.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/landscape_editor/landscape_editor_window.cpp index 662c1d9c9..62feaec48 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/landscape_editor/landscape_editor_window.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/landscape_editor/landscape_editor_window.cpp @@ -245,6 +245,8 @@ void LandscapeEditorWindow::deleteSelectedLand() if (m_ui.landscapesListWidget->count() == 1) m_ui.deleteLandAction->setEnabled(false); + + m_undoStack->clear(); } int LandscapeEditorWindow::createLandscape(const QString &fileName)