Russian translation update +plural fix in paste protection.
[quassel.git] / src / uisupport / inputline.cpp
index 6de29ef..368852b 100644 (file)
@@ -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 += "<p>";
     for(int i = 0; i < 3; i++) {
       msg += lines[i].left(40);
@@ -156,7 +156,9 @@ void InputLine::on_textChanged(QString newText) {
     msg += "...</p>";
     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;
   }