Bug 97357 - topic edit box allows newline
Summary: topic edit box allows newline
Status: RESOLVED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-18 16:50 UTC by Wouter Coekaerts
Modified: 2010-07-01 16:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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()