altough there are bits for that in main() the URL the part loaded was not
saved and restored when that had to happen, now it is
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
note that it is MPV itself that requires it thus the media classes (such as
KMediaPlayer, KMediaWidget, etc.) require it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
In the cases where we returned before calling KApplication::exec(), we
would end up leaking pointers such as |batchJob|, |window| and
|addToArchiveJob|.
Fix it by explicitly deleting |window| (since we do not have another
QWidget to make it a child of) and making |batchJob| and
|addToArchiveJob| be children of our main KApplication so that we do not
need to explicitly delete them under any circumstances.