projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trigger paste protection if pasting more than 3 lines, rather than 4.
[quassel.git]
/
src
/
uisupport
/
inputline.cpp
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();
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++) {
QString msg = tr("Do you really want to paste %1 lines?").arg(lines.count());
msg += "<p>";
for(int i = 0; i < 3; i++) {