Bug 136372 - Outgoing messages history not updated on multiline pastes
Summary: Outgoing messages history not updated on multiline pastes
Status: VERIFIED FIXED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-27 04:08 UTC by Philippe Cloutier
Modified: 2012-02-02 03:30 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 Philippe Cloutier 2006-10-27 04:08:31 UTC
Version:           1.0.1 (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages
OS:                Linux

Suppose I write the following email:

Hi Alice, do you know what? I use Thunderbird on one of my desktops but I
hate it because it automatically wraps lines, no matter what I do. See?
Use kmail!

and then I meet Alice on IRC. I want to send the following message:

Hey Alice. Did you get the urgent email I just sent you? It reads "Hi Alice, do you know what? I use Thunderbird on one of my desktops but I hate it because it automatically wraps lines, no matter what I do. See? Use kmail!"

Since I am on #konversation and don't want to annoy konversation developers, I want to send this message in a single line. But since I am copy-pasting a part of the text from Thunderbird, I get an Edit Multiline Paste dialog. I use the dialog only to eliminate newlines and add an ending quote, then send the message.

The bug is that if I press arrow up after that to browse the outgoing messages history, the string which appears is:

Hey Alice. Did you get the urgent email I just sent you? It reads "

but nothing else. So everything done after the paste is ignored.
Comment 1 Eike Hein 2006-10-27 14:26:46 UTC
SVN commit 599506 by hein:

Append the text actually sent as the result of a paste edit to the
input history, rather than the input line contents.
BUG:136372


 M  +1 -1      ircinput.cpp  


--- trunk/extragear/network/konversation/src/ircinput.cpp #599505:599506
@@ -447,7 +447,7 @@
               // signal pasted text
               emit textPasted(pasteText);
               // remember old line, in case the user does not paste eventually
-              addHistory(text());
+              addHistory(pasteText);
               // delete input text
               clear();
             }