Summary: | Konversation trunk crashes on irc server edit (New network dialog) | ||
---|---|---|---|
Product: | [Applications] konversation | Reporter: | Julien Humbert <julroy67> |
Component: | general | Assignee: | Konversation Developers <konversation-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | hein |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Julien Humbert
2010-06-11 12:16:51 UTC
Hmm sorry for the bad english, I forgot to add the steps to reproduce, and there is it : 1. Launch Konqueror 2. Open up the « Server List » dialog, if not opened up at startup 3. Click on the « New » button 4. On the « New Network » dialog, click the « Add » button for the server (not the auto join channels) 5. Add a server (happens with all type of text) 6. Then when it's added, directly after click on edit 7. Konversation crashes commit d557244a7019c146e71802aea2a8b9c1a14e09eb Author: Eike Hein <hein@kde.org> Date: Fri Jun 11 12:48:05 2010 +0200 Fix regressions from 9e28e6e1. BUG:241405 diff --git a/ChangeLog b/ChangeLog index 8c08ba7..1e8877d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,14 @@ Changes since 1.3: automatic reconnect in the event of connection failure as well. * The '/disconnect' and '/reconnect' commands now take optional quit message parameters. +* Fixed crashes when pressing the "Edit" buttons below the server or + channel lists in the "New Network"/"Edit Network" dialogs after adding + a new server or channel and there was no item selected before in the re- + spective list. +* Fixed bugs causing the "Edit" buttons below the server or channel lists + in the "New Network"/"Edit Network" dialogs to edit the previously selec- + ted list items rather than the ones shown as selected after adding a new + server or channel. Changes from 1.3-beta1 to 1.3: diff --git a/src/irc/servergroupdialog.cpp b/src/irc/servergroupdialog.cpp index f49fb4d..b7e3504 100644 --- a/src/irc/servergroupdialog.cpp +++ b/src/irc/servergroupdialog.cpp @@ -164,7 +164,7 @@ namespace Konversation { ServerSettings server = dlg->serverSettings(); m_mainWidget->m_serverLBox->addItem(server.host()); - m_mainWidget->m_serverLBox->item(m_mainWidget->m_serverLBox->count() - 1)->setSelected(true); + m_mainWidget->m_serverLBox->setCurrentItem(m_mainWidget->m_serverLBox->item(m_mainWidget->m_serverLBox->count() - 1)); m_serverList.append(server); } delete dlg; @@ -287,7 +287,7 @@ namespace Konversation { ChannelSettings channel = dlg->channelSettings(); m_mainWidget->m_channelLBox->addItem(channel.name()); - m_mainWidget->m_channelLBox->item(m_mainWidget->m_channelLBox->count() - 1)->setSelected(true); + m_mainWidget->m_channelLBox->setCurrentItem(m_mainWidget->m_channelLBox->item(m_mainWidget->m_channelLBox->count() - 1)); m_channelList.append(channel); } delete dlg; |