diff --git a/shared/CatKeyStore.cpp b/shared/CatKeyStore.cpp index 36e3618..c95474a 100644 --- a/shared/CatKeyStore.cpp +++ b/shared/CatKeyStore.cpp @@ -16,7 +16,7 @@ class CatKeyTranslationUnit : public TranslationUnit { void SetTranslated(BString t) { mTranslated = t; } bool Suggest() { return false; } - bool SetAsTranslation() { mStore->Synchronize(); } + bool SetAsTranslation() { mStore->Synchronize(); return true;} private: BString mSource; BString mContext; diff --git a/shared/TranslationView.cpp b/shared/TranslationView.cpp index 3adc154..582f01e 100644 --- a/shared/TranslationView.cpp +++ b/shared/TranslationView.cpp @@ -315,7 +315,7 @@ TranslationView::MessageReceived(BMessage *msg) mContext->SetText(mUnit->Context()); mDeveloperComment->SetText(mUnit->DeveloperComment()); mTranslated->SetText(mUnit->Translated()); - + mTranslated->SelectAll(); mWordsView->ScrollToSelection(); break; } @@ -384,7 +384,7 @@ TranslationView::MessageReceived(BMessage *msg) _UpdateView(); if(selection) mWordsView->Select(selection); - mStore->Synchronize(); + mStore->Synchronize(); break; }