Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 187976b2bece821e56e751179eccfbc7 > files > 4

konversation-1.0.1-9mdv2008.1.src.rpm

--- konversation/src/viewcontainer.cpp~	2006-10-06 18:43:29.000000000 +0200
+++ konversation/src/viewcontainer.cpp	2007-01-08 10:35:38.000000000 +0100
@@ -1997,12 +1997,15 @@
     if (m_frontServer)
     {
         DccChat* dccChatPanel=new DccChat(m_tabWidget, myNick,nick,arguments,listen);
-        addView(dccChatPanel, dccChatPanel->getName());
         connect(dccChatPanel, SIGNAL(updateTabNotification(ChatWindow*,const Konversation::TabNotifyType&)), this, SLOT(setViewNotification(ChatWindow*,const Konversation::TabNotifyType&)));
         if(listen)
+	{
             m_frontServer->queue(QString("PRIVMSG %1 :\001DCC CHAT chat %2 %3\001")
               .arg(nick).arg(numericalIp).arg(dccChatPanel->getPort()));
+ }
+        addView(dccChatPanel, dccChatPanel->getName());
     }
+
 }
 
 StatusPanel* ViewContainer::addStatusView(Server* server)