[Konversation-devel] [Bug 110135] using a tab opened in a SSL session after the session is closed leads to crash

Peter Simonsson psn at linux.se
Thu Aug 4 00:30:20 CEST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=110135         
psn linux se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From psn linux se  2005-08-04 00:30 -------
SVN commit 442806 by psn:

Don't crash when showing a log from a closed connection
BUG:110135


 M  +12 -12    konversationmainwindow.cpp  


--- trunk/extragear/network/konversation/src/konversationmainwindow.cpp #442805:442806
 @ -601,7 +601,7  @
   if(!file.isEmpty()) {
     LogfileReader* logReader = new LogfileReader(getViewContainer(), file);
     addView(logReader, i18n("Logfile of %1").arg(caption));
-    logReader->setServer(frontServer);
+    logReader->setServer(0);
   }
 }
 
 @ -1297,19 +1297,19  @
 
 void KonversationMainWindow::goToTab(int page)
 {
-    if ( page >= getViewContainer()->count() )
-        page = 0;
-    else if ( page < 0 )
-        page = getViewContainer()->count() - 1;
+  if(page >= getViewContainer()->count())
+    page = 0;
+  else if(page < 0)
+    page = getViewContainer()->count() - 1;
 
-    if(page>=0)
-    {
-        getViewContainer()->setCurrentPage(page);
-        ChatWindow* newPage=static_cast<ChatWindow*>(getViewContainer()->page(page));
-        newPage->adjustFocus();
-    }
+  if(page >= 0)
+  {
+    getViewContainer()->setCurrentPage(page);
+    ChatWindow* newPage=static_cast<ChatWindow*>(getViewContainer()->page(page));
+    newPage->adjustFocus();
+  }
 
-    m_popupTabIndex = -1;
+  m_popupTabIndex = -1;
 }
 
 void KonversationMainWindow::findText()


More information about the Konversation-devel mailing list