┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinnewfilemenuobserver.cpp
diff options
context:
space:
mode:
authorSebastian Englbrecht <[email protected]>2026-05-31 18:59:36 +0200
committerMéven Car <[email protected]>2026-06-01 09:04:16 +0000
commit44973c9dd016569e643a73148c32bd1a0b01d71d (patch)
tree4fc83d93e58eae08986bfcbdf00a10f0e17d5b3e /src/views/dolphinnewfilemenuobserver.cpp
parentb860b18e2dc8d00dbb72fcfe210f4e48d53ec00c (diff)
dolphinmainwindow,dolphinview: clarify QPointer semantics around exec()
exec() runs a nested event loop that can destroy the parent widget, so the post-exec null-check on the QPointer is intentional, not redundant. dolphinmainwindow: replace `if (contextMenu) deleteLater()` with `delete contextMenu`. QPointer returns nullptr for a destroyed object, making delete a safe no-op. dolphinview: capture the menu as a raw pointer for pre-exec setup; reserve the QPointer for the post-exec liveness check and deletion.
Diffstat (limited to 'src/views/dolphinnewfilemenuobserver.cpp')
0 files changed, 0 insertions, 0 deletions