Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20613

Qt Linguist crashes because clearSelection() is called with an invalid QTextEdit

    XMLWordPrintable

Details

    • 89ae399dfb6d42422396fbb0d869b5a39c4e8bf6,b5c9a10959e6e665601565ed960910d1c105ec94,b68b59f252930538cc124b31decc990ab57bea20,27c322e0f88fa0cccba8cf914655cacb5dae51de

    Description

      Detailed steps to reproduce this crash:

      1. Open Qt Linguist
      2. With mouse drag in it some .ts -file, eg. qt_folder\translations\assistant_cs.ts
      3. Select and copy (ctrl+c) the contents of the translation field
      4. With mouse drag in it some .ts -file which is not related to current open file at all, e.g. qt_folder\translations\designer_de.ts
      5. Click "yes" in the appeared message box when asking if the previous file should be closed
      6. Click on the translation field.
      -> Qt Linguist crashes

      A Quick fix for this issue:

      In linguist\messageeditor.h, include QPointer

      #include <QPointer>

      and then change the line:

      QTextEdit *m_selectionHolder;

      to:

      QPointer<QTextEdit> m_selectionHolder;

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes