diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-03-31 14:11:54 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-04-01 09:50:55 (GMT) |
commit | a5386aa328260157368877b44f2d8d40871f02cf (patch) | |
tree | fafb62f2981be107f5dac744452103bbf7db769f /tools | |
parent | e58807c2d750f41cbe88d49baa5ab42d0f61f5e7 (diff) | |
download | Qt-a5386aa328260157368877b44f2d8d40871f02cf.zip Qt-a5386aa328260157368877b44f2d8d40871f02cf.tar.gz Qt-a5386aa328260157368877b44f2d8d40871f02cf.tar.bz2 |
do not crash upon dnd-ing text into non-focused lineedit
Task-number: 249519
Diffstat (limited to 'tools')
-rw-r--r-- | tools/linguist/linguist/messageeditor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/linguist/linguist/messageeditor.cpp b/tools/linguist/linguist/messageeditor.cpp index 16908bf..dc8b8e4 100644 --- a/tools/linguist/linguist/messageeditor.cpp +++ b/tools/linguist/linguist/messageeditor.cpp @@ -786,6 +786,7 @@ void MessageEditor::selectAll() void MessageEditor::emitTranslationChanged() { + static_cast<FormWidget *>(sender())->getEditor()->setFocus(); // DND proofness updateBeginFromSource(); updateUndoRedo(); emit translationChanged(translations(m_currentModel)); @@ -793,6 +794,7 @@ void MessageEditor::emitTranslationChanged() void MessageEditor::emitTranslatorCommentChanged() { + static_cast<FormWidget *>(sender())->getEditor()->setFocus(); // DND proofness updateUndoRedo(); emit translatorCommentChanged(m_editors[m_currentModel].transCommentText->getTranslation()); } |