Skip to content

Commit

Permalink
remove fuzzy flag when selecting TM-provided translation from right-c…
Browse files Browse the repository at this point in the history
…lick menu
  • Loading branch information
vslavik committed Apr 23, 2008
1 parent e5b3865 commit a33899a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS
Expand Up @@ -3,6 +3,8 @@
- replaced popups when Poedit is started for the first time with
unobtrusive Firefox-style notifications
- Boost library is now required when compiling from sources
- selecting suggested translation from right-click popup menu now
correctly removes fuzzy flag from the translation


Version 1.4.1
Expand Down
8 changes: 8 additions & 0 deletions src/edframe.cpp
Expand Up @@ -2130,7 +2130,15 @@ void PoeditFrame::OnAutoTranslate(wxCommandEvent& event)
wxCHECK_RET( entry, _T("no entry selected") );

int ind = event.GetId() - ID_POPUP_TRANS;

entry->SetTranslation(m_autoTranslations[ind]);
entry->SetFuzzy(false);
entry->SetModified(true);

// FIXME: instead of this mess, use notifications of catalog change
m_modified = true;
UpdateTitle();

UpdateToTextCtrl();
RefreshSelectedItem();
}
Expand Down

0 comments on commit a33899a

Please sign in to comment.