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

Calling modal dialog in network error handling slot when page not found error exists causes segmentation fault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • 4.6.3, 4.7.0
    • Core: URL Handling
    • None
    • Windows XP, Nokia N8

    Description

      Calling modal dialog in network error handling slot when page not found error (404) exists causes segmentation fault

      ...
      QUrl url("http://www.nokia.com/missingPage"); // Malformed URL (404)
      QNetworkRequest req(url);
      ...
      connect(reply, SIGNAL(error(QNetworkReply::NetworkError)),this,SLOT(onError(QNetworkReply::NetworkError)));
      ...
      
      void MyWindow::onError(QNetworkReply::NetworkError code) {
          QMessageBox mb;
          mb.addButton(QMessageBox::Ok);
          mb.setText("Error");
          mb.exec();
        }
      }
      

      Attachments

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

        Activity

          People

            xcm Martin Petersson (Inactive)
            ebragge Eero Bragge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes