We now have a current svn snapshot of libqxt in our contrib dir, and
[quassel.git] / src / common / ircchannel.cpp
index 2233861..b9caebd 100644 (file)
@@ -192,9 +192,7 @@ void IrcChannel::initSetUserModes(const QVariantMap &usermodes) {
 }
 
 void IrcChannel::ircUserDestroyed() {
-  IrcUser *ircUser = qobject_cast<IrcUser *>(sender());
-  // in case this assert triggers we probably need a static_cast
-  // dynamic_casts seem to screw things up when using the destroyed signal
+  IrcUser *ircUser = static_cast<IrcUser *>(sender());
   Q_ASSERT(ircUser);
   part(ircUser);
 }