Skip to content
  • Xuetian Weng's avatar
    Fix random file dialog not showing up problem. · 5d7e29c3
    Xuetian Weng authored
    When using QDialog to implement QPlatformDialog there will be a issue,
    that QDialog will use a dummy invisible to make Qt aware that a modal
    dialog exists. But for our usecase, this invisible dialog will show up
    after our own qdialog and cause our dialog not accept any input.
    
    The original workaround is to hide our dialog and show it again, but
    this will hit QTBUG-48248 and our dialog will not show up at all
    randomly. To avoid this, we delegate the call to show() on our
    QDialog with a timer.
    
    BUG: 350758
    REVIEW: 125208
    5d7e29c3