Trigger paste protection if pasting more than 3 lines, rather than 4.
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 17 Feb 2009 17:05:47 +0000 (18:05 +0100)
committerManuel 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

index 355845d..6de29ef 100644 (file)
@@ -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++) {