https://bugs.kde.org/show_bug.cgi?id=517164
Bug ID: 517164
Summary: kaffeine-2.1.0_pre20260210 menue items only visable
once with Qt6 6.10.2
Classification: Applications
Product: kaffeine
Version First unspecified
Reported In:
Platform: Gentoo Packages
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
Menue item work, but are not visable after you closed the action.
STEPS TO REPRODUCE
1. run kaffeine
2. open Help -> About -> close window
3. open Help
OBSERVED RESULT
until step 2. all works as expected
in step 3. Help menue items are not visibal anymore, but you could open the
menu, if you use the mouse
EXPECTED RESULT
menue items are shown
SOFTWARE/OS VERSIONS
Windows:
macOS:
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma:
Operating System: Gentoo Linux 2.18
KDE Plasma Version: 6.6.2
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Kernel Version: 6.19.3-gentoo (64-bit)
Graphics Platform: Wayland
ADDITIONAL INFORMATION
This seems to fix the issue:
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 46844b7..207d541 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -459,6 +459,9 @@ void MainWindow::readSettings()
move((availableGeometry.width() - width()) / 2,
(availableGeometry.height() - height()) / 2);
} else {
+#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
+ winId(); // force creation of windowHandle()
+#endif // QT_VERSION >= QT_VERSION_CHECK(6,0,0)
restoreGeometry(geometry);
}
}
--
You are receiving this mail because:
You are watching all bug changes.