X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Finputline.cpp;h=368852be93c583323381d87c7f10be381980d2bc;hp=6de29ef542944f787d189e3a5be906ed22487c87;hb=6f5fcd05191d81b16c6acf51835dd516b17ee293;hpb=99bf8cf6c5ddf771978f630f691ff0214821c253 diff --git a/src/uisupport/inputline.cpp b/src/uisupport/inputline.cpp index 6de29ef5..368852be 100644 --- a/src/uisupport/inputline.cpp +++ b/src/uisupport/inputline.cpp @@ -145,7 +145,7 @@ void InputLine::on_textChanged(QString newText) { clear(); if(lines.count() >= 4) { - QString msg = tr("Do you really want to paste %1 lines?").arg(lines.count()); + QString msg = tr("Do you really want to paste %1 lines?", "", lines.count()).arg(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; }