fix denying a large paste
authorHenning Rohlfs <quassel@xehonk.de>
Sat, 16 May 2009 11:32:10 +0000 (13:32 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 16 May 2009 11:58:44 +0000 (13:58 +0200)
src/uisupport/inputline.cpp

index 94dc5e9..501ee60 100644 (file)
@@ -222,8 +222,10 @@ void InputLine::on_textChanged(QString newText) {
 #ifdef Q_WS_MAC
     question.setWindowFlags(question.windowFlags() | Qt::Sheet); // Qt::Sheet is not ignored on other platforms as it should :/
 #endif
-    if(question.exec() == QMessageBox::No)
+    if(question.exec() == QMessageBox::No) {
+      clear();
       return;
+    }
   }
 
   foreach(QString line, lines) {