| Summary: | cannot restore ktorrent window after closing | ||
|---|---|---|---|
| Product: | [Applications] ktorrent | Reporter: | fanzhuyifan |
| Component: | general | Assignee: | Joris Guisson <joris.guisson> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | Keywords: | qt6 |
| Priority: | NOR | ||
| Version First Reported In: | 24.01.95 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/network/ktorrent/-/commit/e35b4881605f045ebe8bca2da357c2a3ae2f1e02 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
fanzhuyifan
2024-02-10 00:03:31 UTC
widget->show() is correctly called here: https://invent.kde.org/network/ktorrent/-/blob/master/ktorrent/main.cpp?ref_type=heads#L249 But the window isn't shown. This might be a Qt6.7 issue; would need to test on Qt6.6 A possibly relevant merge request was started @ https://invent.kde.org/network/ktorrent/-/merge_requests/111 Git commit e35b4881605f045ebe8bca2da357c2a3ae2f1e02 by Andrius Štikonas, on behalf of Yifan Zhu. Committed on 10/02/2024 at 21:50. Pushed by stikonas into branch 'master'. Replace QWidget->show() with QWindow()->show() efe4aa0dcc23e57e68ecd809068f1a49d7705a07 replaces many calls to QWidget->show() with QWindow()->show(). Since mixing these is not supported (https://bugreports.qt.io/browse/QTBUG-120316), replace the remaining QWidget->show() with QWindow()->show() as well. Test-plan: - Enable KTorrent's system tray icon - Close the main KTorrent window - Execute ktorrent from the command line - Close the main KTorrent window - Execute ktorrent from the command line Previously: - After a few repeats ktorrent window doesn't show Now: - ktorrent window always shows after executing ktorrent M +2 -1 ktorrent/main.cpp https://invent.kde.org/network/ktorrent/-/commit/e35b4881605f045ebe8bca2da357c2a3ae2f1e02 |