forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
5a4cdc11cb
commit
bcd8c02aea
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user