commit c16dd5c19f42510b17b7e3393e332834052cc207 Author: Peter Simonsson Date: Wed Jun 16 20:44:31 2004 +0000 Move the messagebox and make it a warning that can be canceled. svn path=/trunk/kdeextragear-2/konversation/; revision=321300 diff --git a/konversation/channellistpanel.cpp b/konversation/channellistpanel.cpp index 4c587a2..c38618a 100644 --- a/konversation/channellistpanel.cpp +++ b/konversation/channellistpanel.cpp @@ -151,11 +151,6 @@ ChannelListPanel::ChannelListPanel(QWidget* parent) : connect(this,SIGNAL (updateNumChannels(const QString&)),channelsLabel,SLOT (setText(const QString&)) ); updateUsersChannels(); - KMessageBox::information(this,i18n("Warning: Using this function may result in a lot " - "of network traffic. If your connection is not fast " - "enough, it is possible that your client will be " - "disconnected by the server."), - i18n("Channel List Warning"),"ChannelListWarning"); } ChannelListPanel::~ChannelListPanel() diff --git a/konversation/konversationmainwindow.cpp b/konversation/konversationmainwindow.cpp index d0d77a3..178434d 100644 --- a/konversation/konversationmainwindow.cpp +++ b/konversation/konversationmainwindow.cpp @@ -362,10 +362,19 @@ void KonversationMainWindow::openChannelList() if(frontServer) { ChannelListPanel* panel=frontServer->getChannelListPanel(); - if(panel) + if(panel) { getViewContainer()->showPage(panel); - else - frontServer->addChannelListPanel(); + } else { + int ret = KMessageBox::warningContinueCancel(this,i18n("Using this function may result in a lot " + "of network traffic. If your connection is not fast " + "enough, it is possible that your client will be " + "disconnected by the server."), i18n("Channel List Warning"), + KStdGuiItem::cont(), "ChannelListWarning"); + + if(ret == KMessageBox::Continue) { + frontServer->addChannelListPanel(); + } + } } else {