103 delete entry; |
103 delete entry; |
104 |
104 |
105 m_changesets.removeLast(); |
105 m_changesets.removeLast(); |
106 } |
106 } |
107 |
107 |
108 dprint ("History: step added (%1 changes)", m_currentChangeset.size()); |
108 // dprint ("History: step added (%1 changes)", m_currentChangeset.size()); |
109 m_changesets << m_currentChangeset; |
109 m_changesets << m_currentChangeset; |
110 m_currentChangeset.clear(); |
110 m_currentChangeset.clear(); |
111 setPosition (position() + 1); |
111 setPosition (position() + 1); |
112 g_win->updateActions(); |
112 g_win->updateActions(); |
113 } |
113 } |
122 return; |
122 return; |
123 } |
123 } |
124 |
124 |
125 entry->setParent (this); |
125 entry->setParent (this); |
126 m_currentChangeset << entry; |
126 m_currentChangeset << entry; |
127 dprint ("History: added entry of type %1", entry->getTypeName()); |
127 // dprint ("History: added entry of type %1", entry->getTypeName()); |
128 } |
128 } |
129 |
129 |
130 // ============================================================================= |
130 // ============================================================================= |
131 // |
131 // |
132 void AddHistory::undo() const |
132 void AddHistory::undo() const |