[Konversation-devel] [Bug 97357] topic edit box allows newline

ismail donmez ( cartman ) ismail at kde.org
Thu Jul 1 15:56:25 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=97357





--- Comment #2 from ismail ( cartman ) donmez <ismail kde org>  2010-07-01 15:56:24 ---
commit a47f91d73e43760f616a70c306b463c2d06ad925
Author: İsmail Dönmez <ismail at 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()

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Konversation-devel mailing list