~ubuntu-branches/ubuntu/lucid/konversation/lucid-updates

« back to all changes in this revision

Viewing changes to debian/patches/17_serverlist_compiz_workaround.diff

  • Committer: Bazaar Package Importer
  • Author(s): Richard Birnie
  • Date: 2008-05-07 13:46:21 UTC
  • Revision ID: james.westby@ubuntu.com-20080507134621-hfob6nmjllmydv16
Tags: 1.0.1-6ubuntu1
Merge with Debian, remaining change just the .orig md5sum, closes LP: #226180

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- konversation-1.0.1/konversation/src/konversationapplication.cpp     (revision 604745)
 
2
+++ konversation-1.0.1/konversation/src/konversationapplication.cpp     (revision 604746)
 
3
@@ -126,7 +126,7 @@
 
4
         emit appearanceChanged();
 
5
         mainWindow->show();
 
6
 
 
7
-        if (Preferences::showServerList()) mainWindow->openServerList();
 
8
+        bool openServerList = Preferences::showServerList();
 
9
 
 
10
         // handle autoconnect on startup
 
11
         Konversation::ServerGroupList serverGroups = Preferences::serverGroupList();
 
12
@@ -135,12 +135,18 @@
 
13
         {
 
14
             for (Konversation::ServerGroupList::iterator it = serverGroups.begin(); it != serverGroups.end(); ++it)
 
15
             {
 
16
-                if ((*it)->autoConnectEnabled()) connectToServer((*it)->id());
 
17
+                if ((*it)->autoConnectEnabled())
 
18
+                {
 
19
+                    openServerList = false;
 
20
+                    connectToServer((*it)->id());
 
21
+                }
 
22
             }
 
23
         }
 
24
         else
 
25
             quickConnectToServer(m_hostName, m_port, m_channel, m_nick, m_password, m_useSSL);
 
26
 
 
27
+        if (openServerList) mainWindow->openServerList();
 
28
+
 
29
         // prepare dcop interface
 
30
         dcopObject = new KonvDCOP;
 
31
         kapp->dcopClient()->setDefaultObject(dcopObject->objId());