Commit 5d6b8519 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Fix crash

parent ce2dec62
......@@ -34,11 +34,11 @@ class ContactStalker : public QObject
Q_OBJECT
public:
ContactStalker(Kopete::MetaContact *contact);
explicit ContactStalker(Kopete::MetaContact *contact);
Q_SIGNALS:
/** Emitted whenever a property of the tracked contact changed */
void contactChanged(QString contactId);
void contactChanged(const QString &contactId);
private Q_SLOTS:
void messageAppended(Kopete::Message &message, Kopete::ChatSession *session);
......
......@@ -96,7 +96,7 @@ BonjourEditAccountWidget::BonjourEditAccountWidget(QWidget *parent, Kopete::Acco
m_preferencesWidget->kcfg_emailAddress->setText(emailAddress);
}
}
if (parent) {
if (parent && parent->layout()) {
parent->layout()->addWidget(this);
}
......
......@@ -64,7 +64,7 @@ GroupWiseEditAccountWidget::GroupWiseEditAccountWidget( QWidget* parent, Kopete:
QWidget::setTabOrder( m_ui.userId, m_ui.password->mRemembered );
QWidget::setTabOrder( m_ui.password->mRemembered, m_ui.password->mPassword );
QWidget::setTabOrder( m_ui.password->mPassword, m_ui.autoConnect );
if (parent) {
if (parent && parent->layout()) {
parent->layout()->addWidget(this);
}
}
......
......@@ -122,7 +122,7 @@ JabberEditAccountWidget::JabberEditAccountWidget (JabberProtocol * proto, Jabber
privacyListsButton->setEnabled (false);
}
if (parent) {
if (parent && parent->layout()) {
parent->layout()->addWidget(this);
}
}
......
......@@ -210,7 +210,7 @@ ICQEditAccountWidget::ICQEditAccountWidget(ICQProtocol *protocol,
QWidget::setTabOrder( mAccountSettings->edtAccountId, mAccountSettings->mPasswordWidget->mRemembered );
QWidget::setTabOrder( mAccountSettings->mPasswordWidget->mRemembered, mAccountSettings->mPasswordWidget->mPassword );
QWidget::setTabOrder( mAccountSettings->mPasswordWidget->mPassword, mAccountSettings->chkAutoLogin );
if (parent) {
if (parent && parent->layout()) {
parent->layout()->addWidget(this);
}
}
......
......@@ -102,7 +102,7 @@ QQEditAccountWidget::QQEditAccountWidget( QQProtocol *proto, Kopete::Account *ac
QWidget::setTabOrder( d->ui->m_login, d->ui->m_password->mRemembered );
QWidget::setTabOrder( d->ui->m_password->mRemembered, d->ui->m_password->mPassword );
QWidget::setTabOrder( d->ui->m_password->mPassword, d->ui->m_autologin );
if (parent) {
if (parent && parent->layout()) {
parent->layout()->addWidget(this);
}
}
......
......@@ -35,7 +35,7 @@ TestbedEditAccountWidget::TestbedEditAccountWidget( QWidget* parent, Kopete::Acc
m_preferencesWidget = new Ui::TestbedAccountPreferences();
m_preferencesWidget->setupUi( widget );
layout->addWidget( widget );
if (parent) {
if (parent && parent->layout()) {
parent->layout()->addWidget(this);
}
}
......
......@@ -89,7 +89,7 @@ WPEditAccount::WPEditAccount(QWidget *parent, Kopete::Account *theAccount)
}
connect(doInstallSamba, SIGNAL(clicked()), this, SLOT(installSamba()));
if (parent) {
if (parent && parent->layout()) {
parent->layout()->addWidget(this);
}
......
......@@ -94,7 +94,7 @@ YahooEditAccount::YahooEditAccount(YahooProtocol *protocol, Kopete::Account *the
QWidget::setTabOrder( mScreenName, mPasswordWidget->mRemembered );
QWidget::setTabOrder( mPasswordWidget->mRemembered, mPasswordWidget->mPassword );
QWidget::setTabOrder( mPasswordWidget->mPassword, mAutoConnect );
if (parent) {
if (parent && parent->layout()) {
parent->layout()->addWidget(this);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment