| Summary: | using a tab opened in a SSL session after the session is closed leads to crash | ||
|---|---|---|---|
| Product: | [Applications] konversation | Reporter: | Emil Obermayr <nobs> |
| Component: | general | Assignee: | Konversation Bugs <konversation-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Emil Obermayr
2005-08-04 00:21:58 UTC
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()
|