Mercurial > hg > svcore
comparison base/CommandHistory.cpp @ 41:2b6412c1e724
* Further MainWindow -> Document refactoring
author | Chris Cannam |
---|---|
date | Wed, 08 Mar 2006 12:38:28 +0000 |
parents | 2fb933f88604 |
children | 701404725897 |
comparison
equal
deleted
inserted
replaced
40:b2d1a61ab916 | 41:2b6412c1e724 |
---|---|
172 m_undoStack.push(command); | 172 m_undoStack.push(command); |
173 m_redoStack.pop(); | 173 m_redoStack.pop(); |
174 // no need to clip | 174 // no need to clip |
175 | 175 |
176 updateActions(); | 176 updateActions(); |
177 | |
178 if ((int)m_undoStack.size() == m_savedAt) emit documentRestored(); | |
177 } | 179 } |
178 | 180 |
179 void | 181 void |
180 CommandHistory::setUndoLimit(int limit) | 182 CommandHistory::setUndoLimit(int limit) |
181 { | 183 { |