Reviewing merge request #1480: Qt Linguist: Fix crash

Fix crash of Qt Linguist.

Qt Linguist crashes when text is selected after TS file that has selected text is closed.
This fix contains refactoring of Merge-request: 1466.

Commits that would be merged:

Version 2
  • Version 1
  • Version 2
  • 67b3edc
  • bc15da8
  • Qt Linguist: Fix crashes

Showing 67b3edc-bc15da8

Comments

Pushed new version 1

+             FormatTextEdit *fte = qobject_cast<FormatTextEdit*>(m_selectionHolder);

please put the declaration+assignment inside the if(). that also makes the braces around the statement unnecessary.

→ State changed from New to Updated

Pushed new version 2

→ State changed from Updated to Merged

Add a new comment:

Login or create an account to post a comment

How to apply this merge request to your repository