~edubuntu-italc-devel/italc/italc-intrepid

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /bin/sh /usr/share/dpatch/dpatch-run
## 05_fixdemo.patch by Stéphane Graber <stgraber@ubuntu.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix demo mode when using remote ISD

@DPATCH@
diff -Nrup ../../orig/ica/src/isd_server.cpp ../ica/src/isd_server.cpp
--- ../../orig/ica/src/isd_server.cpp	2008-07-06 16:24:58.000000000 -0400
+++ ../ica/src/isd_server.cpp	2008-09-30 20:00:24.000000000 -0400
@@ -256,7 +256,7 @@ int isdServer::processClient( socketDisp
 			}
 			else
 			{
-				action = port;
+				action = port.split(":")[1]+":"+port.split(":")[2];
 			}
 			break;
 		}
diff -Nrup ../../orig/ima/src/client.cpp ../ima/src/client.cpp
--- ../../orig/ima/src/client.cpp	2008-06-26 08:18:29.000000000 -0400
+++ ../ima/src/client.cpp	2008-09-30 20:00:07.000000000 -0400
@@ -52,6 +52,7 @@ const int TITLE_HEIGHT = 23;
 const QPoint CONTENT_OFFSET( DECO_WIDTH, DECO_WIDTH + TITLE_HEIGHT ); 
 const QSize CONTENT_SIZE_SUB( 2*DECO_WIDTH, 2*DECO_WIDTH + TITLE_HEIGHT ); 
 
+extern QString __isd_host;
 
 // resolve static symbols...
 QHash<int, client *> client::s_clientIDs;
@@ -1245,7 +1246,7 @@ void updateThread::update( void )
 				break;
 			case Cmd_StartDemo:
 				m_client->m_connection->startDemo(
-					i.second.toList()[0].toString(),
+					__isd_host+":"+i.second.toList()[0].toString(),
 					i.second.toList()[1].toInt() );
 				break;
 			case Cmd_StopDemo: