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

« back to all changes in this revision

Viewing changes to debian/patches/07_masterpatch.patch

  • Committer: Stéphane graber
  • Date: 2008-07-07 12:31:49 UTC
  • Revision ID: stgraber@ubuntu.com-20080707123149-n0lvoe7s052e45zi
Update for 1.0.9-rc4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh /usr/share/dpatch/dpatch-run
2
 
## 07_masterpatch.patch by Stéphane Graber <stgraber@ubuntu.com>
3
 
##
4
 
## All lines beginning with `## DP:' are a description of the patch.
5
 
## DP: Patch from upstream to fix a crash in ima
6
 
 
7
 
@DPATCH@
8
 
Index: ../ima/src/client.cpp
9
 
===================================================================
10
 
--- ../ima/src/client.cpp       (Revision 402)
11
 
+++ ../ima/src/client.cpp       (Arbeitskopie)
12
 
@@ -691,6 +691,21 @@
13
 
 
14
 
 void client::update( void )
15
 
 {
16
 
+       // at least set tooltip with user-name if it is not displayed
17
 
+       // in title-bar
18
 
+       if( m_connection->state() == ivsConnection::Connected &&
19
 
+               !m_mainWindow->getClassroomManager()->showUsername() )
20
 
+       {
21
 
+               if( toolTip() != m_user )
22
 
+               {
23
 
+                       setToolTip( m_user );
24
 
+               }
25
 
+       }
26
 
+       else
27
 
+       {
28
 
+               setToolTip( QString() );
29
 
+       }
30
 
+
31
 
        m_state = currentState();
32
 
        QWidget::update();
33
 
 }
34
 
@@ -1011,7 +1026,6 @@
35
 
 
36
 
 void client::reload()
37
 
 {
38
 
-       QString tooltip = "";
39
 
        if( userLoggedIn() )
40
 
        {
41
 
                m_syncMutex.lock();
42
 
@@ -1036,12 +1050,6 @@
43
 
                }
44
 
 
45
 
                m_user = m_connection->user();
46
 
-               // at least set tooltip with user-name if it is not displayed
47
 
-               // in title-bar
48
 
-               if( !m_mainWindow->getClassroomManager()->showUsername() )
49
 
-               {
50
 
-                       tooltip = m_user;
51
 
-               }
52
 
                m_syncMutex.unlock();
53
 
        }
54
 
        else
55
 
@@ -1049,13 +1057,6 @@
56
 
                m_user = "";
57
 
        }
58
 
 
59
 
-       if( toolTip() != tooltip )
60
 
-       {
61
 
-               setToolTip( tooltip );
62
 
-       }
63
 
-
64
 
-       update();
65
 
-
66
 
        if( m_classRoomItem )
67
 
        {
68
 
                m_classRoomItem->setUser( m_user );