Bug 97357

Summary: topic edit box allows newline
Product: [Applications] konversation Reporter: Wouter Coekaerts <wouter>
Component: generalAssignee: Konversation Developers <konversation-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Wouter Coekaerts 2005-01-18 16:50:11 UTC
Version:           0.16 (using KDE KDE 3.3.1)
OS:                Linux

You can enter newlines (enter) in the topic edit box in the channel options dialog. Lines after the first one are send "raw" to the server
Comment 1 Ismail Donmez 2005-01-18 19:45:21 UTC
CVS commit by cartman: 


Replace \n with a space when setting topic 
BUG:97357


  M +1 -1      channeloptionsdialog.cpp   1.13


--- kdeextragear-2/konversation/konversation/channeloptionsdialog.cpp  #1.12:1.13
@@ -110,5 +110,5 @@ void ChannelOptionsDialog::toggleAdvance
 QString ChannelOptionsDialog::topic()
 {
-  return m_widget->topicEdit->text();
+  return m_widget->topicEdit->text().replace("\n"," ");
 }
 


Comment 2 Ismail Donmez 2010-07-01 15:56:24 UTC
commit a47f91d73e43760f616a70c306b463c2d06ad925
Author: İsmail Dönmez <ismail@kde.org>
Date:   Tue Jan 18 18:44:16 2005 +0000

    Replace \n with a space when setting topic
    BUG:97357
    
    svn path=/trunk/kdeextragear-2/konversation/; revision=379863

diff --git a/konversation/channeloptionsdialog.cpp b/konversation/channeloptionsdialog.cpp
index 038979e..2095bf0 100644
--- a/konversation/channeloptionsdialog.cpp
+++ b/konversation/channeloptionsdialog.cpp
@@ -109,7 +109,7 @@ void ChannelOptionsDialog::toggleAdvancedModes()
 
 QString ChannelOptionsDialog::topic()
 {
-  return m_widget->topicEdit->text();
+  return m_widget->topicEdit->text().replace("\n"," ");
 }
 
 void ChannelOptionsDialog::refreshTopicHistory()
Comment 3 Ismail Donmez 2010-07-01 16:20:31 UTC
commit a47f91d73e43760f616a70c306b463c2d06ad925
Author: İsmail Dönmez <ismail@kde.org>
Date:   Tue Jan 18 18:44:16 2005 +0000

    Replace \n with a space when setting topic
    BUG:97357
    
    svn path=/trunk/kdeextragear-2/konversation/; revision=379863

diff --git a/konversation/channeloptionsdialog.cpp b/konversation/channeloptionsdialog.cpp
index 038979e..2095bf0 100644
--- a/konversation/channeloptionsdialog.cpp
+++ b/konversation/channeloptionsdialog.cpp
@@ -109,7 +109,7 @@ void ChannelOptionsDialog::toggleAdvancedModes()
 
 QString ChannelOptionsDialog::topic()
 {
-  return m_widget->topicEdit->text();
+  return m_widget->topicEdit->text().replace("\n"," ");
 }
 
 void ChannelOptionsDialog::refreshTopicHistory()