Commit graph

3 commits

Author SHA1 Message Date
Ivailo Monev
e0cee79203 ark: simplify the session restoration logic
Bail out earlier instead of nesting if checks and testing |window|'s
value in different places.
2015-01-04 02:47:25 +00:00
Ivailo Monev
3eb01a3ecd main: Stop leaking pointers when we do not enter the main app loop.
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.
2015-01-04 02:46:48 +00:00
Ivailo Monev
07d10d4d4e initial import of ark 2014-11-18 17:46:34 +00:00