src/history.cpp

changeset 503
bebe09014dd6
parent 498
791c831c8020
child 527
47c068f2e7e3
equal deleted inserted replaced
502:f6534d591f80 503:bebe09014dd6
109 { if (!opened()) 109 { if (!opened())
110 return; 110 return;
111 111
112 setOpened (false); 112 setOpened (false);
113 113
114 if (m_currentArchive.size() == 0) 114 if (m_currentArchive.isEmpty())
115 return; 115 return;
116 116
117 while (pos() < size() - 1) 117 while (pos() < size() - 1)
118 m_changesets.erase (size() - 1); 118 m_changesets.removeLast();
119 119
120 m_changesets << m_currentArchive; 120 m_changesets << m_currentArchive;
121 m_currentArchive.clear(); 121 m_currentArchive.clear();
122 setPos (pos() + 1); 122 setPos (pos() + 1);
123 updateActions(); 123 updateActions();

mercurial