mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
invalidate comics in httpsession before deleting them.
This commit is contained in:
parent
72880cb59e
commit
befbb06220
@ -244,6 +244,7 @@ void HttpSession::dismissCurrentComic()
|
|||||||
{
|
{
|
||||||
if(dataPtr->yacreaderSessionData.comic != 0)
|
if(dataPtr->yacreaderSessionData.comic != 0)
|
||||||
{
|
{
|
||||||
|
dataPtr->yacreaderSessionData.comic->invalidate();
|
||||||
dataPtr->yacreaderSessionData.comic->deleteLater();
|
dataPtr->yacreaderSessionData.comic->deleteLater();
|
||||||
dataPtr->yacreaderSessionData.comic = 0;
|
dataPtr->yacreaderSessionData.comic = 0;
|
||||||
}
|
}
|
||||||
@ -283,6 +284,7 @@ void HttpSession::dismissCurrentRemoteComic()
|
|||||||
{
|
{
|
||||||
if(dataPtr->yacreaderSessionData.remoteComic != 0)
|
if(dataPtr->yacreaderSessionData.remoteComic != 0)
|
||||||
{
|
{
|
||||||
|
dataPtr->yacreaderSessionData.remoteComic->invalidate();
|
||||||
dataPtr->yacreaderSessionData.remoteComic->deleteLater();
|
dataPtr->yacreaderSessionData.remoteComic->deleteLater();
|
||||||
dataPtr->yacreaderSessionData.remoteComic = 0;
|
dataPtr->yacreaderSessionData.remoteComic = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user