diff options
Diffstat (limited to 'chrome/browser/translate/translate_infobars_delegates.cc')
-rw-r--r-- | chrome/browser/translate/translate_infobars_delegates.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/translate/translate_infobars_delegates.cc b/chrome/browser/translate/translate_infobars_delegates.cc index 3dba0ca..7bf2a4f 100644 --- a/chrome/browser/translate/translate_infobars_delegates.cc +++ b/chrome/browser/translate/translate_infobars_delegates.cc @@ -53,7 +53,8 @@ void TranslateInfoBarDelegate::GetAvailableTargetLanguages( } void TranslateInfoBarDelegate::Translate() { - tab_contents_->TranslatePage(original_lang_code(), target_lang_code()); + if (original_lang_index_ != target_lang_index_) + tab_contents_->TranslatePage(original_lang_code(), target_lang_code()); } bool TranslateInfoBarDelegate::IsLanguageBlacklisted() { |