From: Manuel Nickschas Date: Tue, 17 Feb 2009 17:05:47 +0000 (+0100) Subject: Trigger paste protection if pasting more than 3 lines, rather than 4. X-Git-Tag: 0.4.0~9 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=99bf8cf6c5ddf771978f630f691ff0214821c253 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. --- 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++) {