From 97bfc60c6b1d8cc067d272caa873e7477fd38d69 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. --- .../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)