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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user