diff -r f6534d591f80 -r bebe09014dd6 src/history.cpp --- a/src/history.cpp Wed Oct 16 16:05:51 2013 +0300 +++ b/src/history.cpp Wed Oct 16 16:40:42 2013 +0300 @@ -111,11 +111,11 @@ setOpened (false); - if (m_currentArchive.size() == 0) + if (m_currentArchive.isEmpty()) return; while (pos() < size() - 1) - m_changesets.erase (size() - 1); + m_changesets.removeLast(); m_changesets << m_currentArchive; m_currentArchive.clear();