src/history.cpp

changeset 503
bebe09014dd6
parent 498
791c831c8020
child 527
47c068f2e7e3
--- 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();

mercurial