diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-06-02 19:41:58 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-06-03 10:36:22 +0200 |
commit | bcd8c02aea2e8384293b8dc0e1a69135a088d33c (patch) | |
tree | b48c955502d392bc0ee77ec37bb7c39689360f12 /src/plugins/git/logchangedialog.cpp | |
parent | 5a4cdc11cbf10e205e30bf118bc4e672a4d198af (diff) |
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>
Diffstat (limited to 'src/plugins/git/logchangedialog.cpp')
-rw-r--r-- | src/plugins/git/logchangedialog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/git/logchangedialog.cpp b/src/plugins/git/logchangedialog.cpp index 373e8f37e8..4f11be1d11 100644 --- a/src/plugins/git/logchangedialog.cpp +++ b/src/plugins/git/logchangedialog.cpp @@ -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), |