Fix random file dialog not showing up problem.
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
Showing
- autotests/kfiledialog_unittest.cpp 10 additions, 0 deletionsautotests/kfiledialog_unittest.cpp
- autotests/kfiledialogqml_unittest.cpp 4 additions, 0 deletionsautotests/kfiledialogqml_unittest.cpp
- src/platformtheme/kdeplatformfiledialogbase.cpp 15 additions, 1 deletionsrc/platformtheme/kdeplatformfiledialogbase.cpp
- src/platformtheme/kdeplatformfiledialogbase_p.h 5 additions, 0 deletionssrc/platformtheme/kdeplatformfiledialogbase_p.h
- src/platformtheme/kdeplatformfiledialoghelper.cpp 23 additions, 12 deletionssrc/platformtheme/kdeplatformfiledialoghelper.cpp
- src/platformtheme/kdeplatformfiledialoghelper.h 1 addition, 0 deletionssrc/platformtheme/kdeplatformfiledialoghelper.h
Loading
Please register or sign in to comment