fixes #609 - bufferview not correctly sorted
[quassel.git] / src / uisupport / inputline.cpp
index 355845d..76796dd 100644 (file)
@@ -144,7 +144,7 @@ void InputLine::on_textChanged(QString newText) {
   QStringList lines = newText.split(lineSep);
   clear();
 
-  if(lines.count() > 4) {
+  if(lines.count() >= 4) {
     QString msg = tr("Do you really want to paste %1 lines?").arg(lines.count());
     msg += "<p>";
     for(int i = 0; i < 3; i++) {
@@ -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;
   }