Mercurial > hg > easyhg
diff src/historywidget.cpp @ 608:6f90bb52eee6
Clear history and file states while opening a new remote repo
author | Chris Cannam |
---|---|
date | Tue, 03 Jul 2012 12:12:42 +0100 |
parents | 88ec0ae91dcc |
children | f635e227775c |
line wrap: on
line diff
--- a/src/historywidget.cpp Tue Jul 03 11:48:28 2012 +0100 +++ b/src/historywidget.cpp Tue Jul 03 12:12:42 2012 +0100 @@ -205,6 +205,13 @@ } } +void HistoryWidget::clear() +{ + QGraphicsScene *oldScene = m_panned->scene(); + m_panned->setScene(0); + delete oldScene; +} + void HistoryWidget::layoutAll() { m_refreshNeeded = false;