disconnect if the page changes but we don't own it
svn path=/trunk/KDE/kdelibs/; revision=884087
This commit is contained in:
parent
c7cb88677c
commit
2fc960f455
@ -103,8 +103,12 @@ void WebView::setPage(QWebPage *page)
|
||||
return;
|
||||
}
|
||||
|
||||
if (d->page && d->page->parent() == this) {
|
||||
delete d->page;
|
||||
if (d->page) {
|
||||
if (d->page->parent() == this) {
|
||||
delete d->page;
|
||||
} else {
|
||||
disconnect(d->page, 0, this, 0);
|
||||
}
|
||||
}
|
||||
|
||||
d->page = page;
|
||||
|
Loading…
Reference in New Issue
Block a user