--- a/src/history.cpp Tue Oct 22 19:22:15 2013 +0300 +++ b/src/history.cpp Tue Oct 22 19:28:45 2013 +0300 @@ -34,7 +34,7 @@ // ============================================================================= // ----------------------------------------------------------------------------- void History::undo() -{ if (m_changesets.size() == 0 || pos() == -1) +{ if (m_changesets.isEmpty() || pos() == -1) return; const Changeset& set = changeset (pos());