projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9f85011
)
Trigger paste protection if pasting more than 3 lines, rather than 4.
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 17 Feb 2009 17:05:47 +0000
(18:05 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Tue, 17 Feb 2009 17:05:47 +0000
(18:05 +0100)
This is to shut up a certain person. :> And no, we won't do it on a single newline
already, as this would be quite annoying.
src/uisupport/inputline.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/inputline.cpp
b/src/uisupport/inputline.cpp
index
355845d
..
6de29ef
100644
(file)
--- a/
src/uisupport/inputline.cpp
+++ b/
src/uisupport/inputline.cpp
@@
-144,7
+144,7
@@
void InputLine::on_textChanged(QString newText) {
QStringList lines = newText.split(lineSep);
clear();
- if(lines.count() > 4) {
+ if(lines.count() >
=
4) {
QString msg = tr("Do you really want to paste %1 lines?").arg(lines.count());
msg += "<p>";
for(int i = 0; i < 3; i++) {