X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Finputline.cpp;h=eaed70fe5c5ebe1fa039a0a8b22f9b12b5a033d4;hb=860dfc7ed65d6810cd759b1f92c2c18616c02393;hp=355845db34f04d5398c7ea83b49f97e4546cad1b;hpb=b7adadd990f9647f94b92f42d3b0a6d7d6223ebd;p=quassel.git diff --git a/src/uisupport/inputline.cpp b/src/uisupport/inputline.cpp index 355845db..eaed70fe 100644 --- a/src/uisupport/inputline.cpp +++ b/src/uisupport/inputline.cpp @@ -144,8 +144,8 @@ void InputLine::on_textChanged(QString newText) { QStringList lines = newText.split(lineSep); clear(); - if(lines.count() > 4) { - QString msg = tr("Do you really want to paste %1 lines?").arg(lines.count()); + if(lines.count() >= 4) { + QString msg = tr("Do you really want to paste %n lines?", "", lines.count()); msg += "

"; for(int i = 0; i < 3; i++) { msg += lines[i].left(40); @@ -156,7 +156,9 @@ void InputLine::on_textChanged(QString newText) { msg += "...

"; QMessageBox question(QMessageBox::NoIcon, tr("Paste Protection"), msg, QMessageBox::Yes|QMessageBox::No); question.setDefaultButton(QMessageBox::No); +#ifdef Q_WS_MAC question.setWindowFlags(question.windowFlags() | Qt::Sheet); +#endif if(question.exec() == QMessageBox::No) return; }