Skip to content
Commit bdef648e authored by Akseli Lahtinen's avatar Akseli Lahtinen
Browse files

WidgetsAskUserActionHandler: Use QPointer to check the validity of parent widgets

If Dolphin is closed during the copying process,
and the overwrite/skip dialog appears,
this crashes the copying process since the 
parent shows to faulty location.

Use QPointer to check that the parent widgets are still
valid. If not, we just use nullptr, and the dialogs
will still open.

This also cleans some repetition in code.

BUG:448532
parent 739a9819
Pipeline #546171 failed with stage
in 4 minutes and 13 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment