From 99bf8cf6c5ddf771978f630f691ff0214821c253 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Tue, 17 Feb 2009 18:05:47 +0100 Subject: [PATCH] Trigger paste protection if pasting more than 3 lines, rather than 4. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uisupport/inputline.cpp b/src/uisupport/inputline.cpp index 355845db..6de29ef5 100644 --- 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 += "

"; for(int i = 0; i < 3; i++) { -- 2.20.1