Git: Prevent or close fixup editor if no local commits are found

Change-Id: I546241fb3531cbc542b97d6d0f53382c9225dcf4
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-06-02 19:41:58 +03:00
committed by Orgad Shaneh
parent 5a4cdc11cb
commit bcd8c02aea
3 changed files with 17 additions and 2 deletions

View File

@@ -73,8 +73,7 @@ bool LogChangeWidget::init(const QString &repository, const QString &commit, boo
return false;
if (!m_model->rowCount()) {
VcsBase::VcsBaseOutputWindow::instance()->appendError(
includeRemote ? tr("No commits were found")
: tr("No local commits were found"));
GitPlugin::instance()->gitClient()->msgNoCommits(includeRemote));
return false;
}
selectionModel()->select(m_model->index(0, 0),