Fix slot warnings when no partManager is available

This resolves the remainder of Bug 1088
pull/16/head
Timothy Pearson 11 years ago
parent 8f812a828a
commit ecaf622512

@ -1083,6 +1083,7 @@ TDECPUDevice::TDECPUDevice(TDEGenericDeviceType::TDEGenericDeviceType dt, TQStri
m_minfrequency = -1; m_minfrequency = -1;
m_maxfrequency = -1; m_maxfrequency = -1;
m_corenumber = -1; m_corenumber = -1;
m_transitionlatency = -1;
} }
TDECPUDevice::~TDECPUDevice() { TDECPUDevice::~TDECPUDevice() {

@ -609,17 +609,23 @@ Value DOMNodeProtoFunc::tryCall(ExecState *exec, Object &thisObj, const List &ar
DOMString where = args[0].toString(exec).string(); DOMString where = args[0].toString(exec).string();
if (where == "beforeBegin" || where == "BeforeBegin") if (where == "beforeBegin" || where == "BeforeBegin") {
node.parentNode().insertBefore(docFrag, node); node.parentNode().insertBefore(docFrag, node);
else if (where == "afterBegin" || where == "AfterBegin") }
else if (where == "afterBegin" || where == "AfterBegin") {
node.insertBefore(docFrag, node.firstChild()); node.insertBefore(docFrag, node.firstChild());
else if (where == "beforeEnd" || where == "BeforeEnd") }
else if (where == "beforeEnd" || where == "BeforeEnd") {
return getDOMNode(exec, node.appendChild(docFrag)); return getDOMNode(exec, node.appendChild(docFrag));
else if (where == "afterEnd" || where == "AfterEnd") }
if (!node.nextSibling().isNull()) else if (where == "afterEnd" || where == "AfterEnd") {
if (!node.nextSibling().isNull()) {
node.parentNode().insertBefore(docFrag, node.nextSibling()); node.parentNode().insertBefore(docFrag, node.nextSibling());
else }
else {
node.parentNode().appendChild(docFrag); node.parentNode().appendChild(docFrag);
}
}
return Undefined(); return Undefined();
} }

@ -1429,8 +1429,10 @@ void TDEHTMLPart::clear()
d->m_decoder = 0; d->m_decoder = 0;
// We don't want to change between parts if we are going to delete all of them anyway // We don't want to change between parts if we are going to delete all of them anyway
disconnect( partManager(), TQT_SIGNAL( activePartChanged( KParts::Part * ) ), if (partManager()) {
disconnect( partManager(), TQT_SIGNAL( activePartChanged( KParts::Part * ) ),
this, TQT_SLOT( slotActiveFrameChanged( KParts::Part * ) ) ); this, TQT_SLOT( slotActiveFrameChanged( KParts::Part * ) ) );
}
if (d->m_frames.count()) if (d->m_frames.count())
{ {
@ -1462,8 +1464,10 @@ void TDEHTMLPart::clear()
} }
// Listen to part changes again // Listen to part changes again
connect( partManager(), TQT_SIGNAL( activePartChanged( KParts::Part * ) ), if (partManager()) {
connect( partManager(), TQT_SIGNAL( activePartChanged( KParts::Part * ) ),
this, TQT_SLOT( slotActiveFrameChanged( KParts::Part * ) ) ); this, TQT_SLOT( slotActiveFrameChanged( KParts::Part * ) ) );
}
d->m_delayRedirect = 0; d->m_delayRedirect = 0;
d->m_redirectURL = TQString(); d->m_redirectURL = TQString();
@ -5593,14 +5597,16 @@ void TDEHTMLPart::restoreState( TQDataStream &stream )
if ( (*childFrame)->m_part ) if ( (*childFrame)->m_part )
{ {
if ( (*childFrame)->m_extension ) if ( (*childFrame)->m_extension ) {
if ( (*childFrame)->m_extension && !(*fBufferIt).isEmpty() ) if ( (*childFrame)->m_extension && !(*fBufferIt).isEmpty() )
{ {
TQDataStream frameStream( *fBufferIt, IO_ReadOnly ); TQDataStream frameStream( *fBufferIt, IO_ReadOnly );
(*childFrame)->m_extension->restoreState( frameStream ); (*childFrame)->m_extension->restoreState( frameStream );
}
else {
(*childFrame)->m_part->openURL( *fURLIt );
}
} }
else
(*childFrame)->m_part->openURL( *fURLIt );
} }
} }

@ -357,11 +357,11 @@ inline bool checkQualifiedName(const DOMString &qualifiedName, const DOMString &
} }
} }
if (!qualifiedName.isNull() && Element::tdehtmlMalformedQualifiedName(qualifiedName) || if (((!qualifiedName.isNull()) && Element::tdehtmlMalformedQualifiedName(qualifiedName)) ||
(colonpos >= 0 && namespaceURI.isNull()) || (colonpos >= 0 && namespaceURI.isNull()) ||
(qualifiedName.isNull() && !namespaceURI.isNull()) || (qualifiedName.isNull() && !namespaceURI.isNull()) ||
(colonpos == 3 && qualifiedName[0] == 'x' && qualifiedName[1] == 'm' && qualifiedName[2] == 'l' && ((colonpos == 3) && (qualifiedName[0] == 'x') && (qualifiedName[1] == 'm') && (qualifiedName[2] == 'l') &&
namespaceURI != "http://www.w3.org/XML/1998/namespace")) { (namespaceURI != "http://www.w3.org/XML/1998/namespace"))) {
if (pExceptioncode) if (pExceptioncode)
*pExceptioncode = DOMException::NAMESPACE_ERR; *pExceptioncode = DOMException::NAMESPACE_ERR;
return false; return false;

Loading…
Cancel
Save