1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 00:54:20 +02:00

don't crash when jason tries to use tomahawk

This commit is contained in:
Leo Franchi
2011-06-11 12:18:12 -04:00
parent efc29a1c92
commit 1c43cabd7e
4 changed files with 10 additions and 2 deletions

View File

@@ -323,6 +323,11 @@ namespace QxtMetaObject
*/
bool connect(QObject* sender, const char* signal, QxtBoundFunction* slot, Qt::ConnectionType type)
{
if (!sender)
{
qWarning() << "Got connect() with a null sender!";
return false;
}
const QMetaObject* meta = sender->metaObject();
int methodID = meta->indexOfMethod(meta->normalizedSignature(signal).mid(1).constData());
if (methodID < 0)