QTfrontend/game.cpp
changeset 10851 f25dad9c3136
parent 10850 c76ea22ea249
child 11046 47a8c19ecb60
--- a/QTfrontend/game.cpp	Sun Mar 08 01:04:41 2015 +0100
+++ b/QTfrontend/game.cpp	Sun Mar 08 01:51:27 2015 +0100
@@ -213,18 +213,6 @@
             SendIPC("!");
             break;
         }
-        case 'Y':
-        {
-            // copy string to clipboard
-            QApplication::clipboard()->setText(QString::fromUtf8(msg.mid(2)));
-            break;
-        }
-        case 'P':
-        {
-            // paste clipboard to game
-            SendIPC(QString("P").toAscii() + QApplication::clipboard()->text().toUtf8().left(254).replace('\n', ' '));
-            break;
-        }
         case 'C':
         {
             switch (gameType)
@@ -273,6 +261,18 @@
                 .arg(QString::fromUtf8(msg.mid(2).left(size - 4))));
             return;
         }
+        case 'y':
+        {
+            // copy string to clipboard
+            QApplication::clipboard()->setText(QString::fromUtf8(msg.mid(2)));
+            break;
+        }
+        case 'Y':
+        {
+            // paste clipboard to game
+            SendIPC(QString("Y").toAscii() + QApplication::clipboard()->text().toUtf8().left(250).replace('\n', ' '));
+            break;
+        }
         case 'i':
         {
             emit GameStats(msg.at(2), QString::fromUtf8(msg.mid(3)));