From: Henning Rohlfs Date: Sat, 16 May 2009 11:32:10 +0000 (+0200) Subject: fix denying a large paste X-Git-Tag: 0.5-rc1~195 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=55e0c20198a47b418496ecea0935472488c463e7 fix denying a large paste --- diff --git a/src/uisupport/inputline.cpp b/src/uisupport/inputline.cpp index 94dc5e91..501ee605 100644 --- a/src/uisupport/inputline.cpp +++ b/src/uisupport/inputline.cpp @@ -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) {