# HG changeset patch # User Chris Cannam # Date 1350643648 -3600 # Node ID 91b7ad45c6080bfdb8fb8dea5f70c15506503e6a # Parent 31f5168fb5d968c5ae038599c52fc706e6a752f6# Parent 66adbedb69a959d8e0cc0c94a7773efa3729709f Merge diff -r 31f5168fb5d9 -r 91b7ad45c608 src/historywidget.cpp --- a/src/historywidget.cpp Fri Oct 19 11:41:38 2012 +0100 +++ b/src/historywidget.cpp Fri Oct 19 11:47:28 2012 +0100 @@ -243,11 +243,24 @@ toFocus = g.getUncommittedItem(); if (!toFocus) { if (!m_currentIds.empty()) { - toFocus = g.getItemFor(m_currentIds[0]); + for (int i = 0; i < m_currentIds.size(); ++i) { + toFocus = g.getItemFor(m_currentIds[i]); + if (toFocus != 0) { + break; + } + } } else { toFocus = g.getItemFor(m_changesets[0]); } } + if (!toFocus) { + for (int i = 0; i < m_changesets.size(); ++i) { + toFocus = g.getItemFor(m_changesets[i]); + if (toFocus != 0) { + break; + } + } + } } m_panned->setScene(scene); diff -r 31f5168fb5d9 -r 91b7ad45c608 src/mainwindow.cpp --- a/src/mainwindow.cpp Fri Oct 19 11:41:38 2012 +0100 +++ b/src/mainwindow.cpp Fri Oct 19 11:47:28 2012 +0100 @@ -3195,7 +3195,7 @@ QString tag = QString("version-%1-available-show").arg(version); if (settings.value(tag, true).toBool()) { QString title(tr("Newer version available")); - QString text(tr("
You are using version %1 of EasyMercurial, but version %3 is now available.
Please see the EasyMercurial website for more information.
").arg(EASYHG_VERSION).arg(version)); + QString text(tr("You are using version %1 of EasyMercurial, but version %3 is now available.
Please see the EasyMercurial website for more information.
").arg(EASYHG_VERSION).arg(version)); QMessageBox::information(this, title, text); settings.setValue(tag, false); }