[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/network/telepathy-accounts-kcm/src
From:       David Edmundson <kde () davidedmundson ! co ! uk>
Date:       2010-08-27 11:22:09
Message-ID: 20100827112209.E360AAC857 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1168777 by davidedmundson:

Make sure we only connect to the account item onTitleUpdated slot once.

This fixes a bug in which editing a jabber account, then editing it again will result \
in 4 sets of tabs the second time.



 M  +1 -0      accounts-list-model.cpp  
 M  +4 -2      kcm-telepathy-accounts.cpp  


--- trunk/playground/network/telepathy-accounts-kcm/src/accounts-list-model.cpp \
#1168776:1168777 @@ -156,6 +156,7 @@
         return;
     }
 
+      accountItem->disconnect();
 	connect(accountItem, SIGNAL(protocolSelected(QString, QString)),
 		this, SIGNAL(protocolSelected(QString, QString)));
 	connect(this, SIGNAL(setTitleForCustomPages(QString, QList<QString>)),
--- trunk/playground/network/telepathy-accounts-kcm/src/kcm-telepathy-accounts.cpp \
#1168776:1168777 @@ -78,6 +78,9 @@
     connect(m_accountsListView->selectionModel(),
             SIGNAL(currentChanged(QModelIndex, QModelIndex)),
             SLOT(onSelectedItemChanged()));
+      connect(this, SIGNAL(setTitleForCustomPages(QString, QList<QString>)),
+                  m_accountsListModel, SLOT(onTitleForCustomPages(QString, \
QList<QString>))); +
 }
 
 KCMTelepathyAccounts::~KCMTelepathyAccounts()
@@ -186,8 +189,7 @@
 	m_accountsListModel->disconnect();
 	connect(m_accountsListModel, SIGNAL(protocolSelected(QString, QString)),
 			this, SLOT(onProtocolSelected(QString, QString)));
-	connect(this, SIGNAL(setTitleForCustomPages(QString, QList<QString>)),
-			m_accountsListModel, SLOT(onTitleForCustomPages(QString, QList<QString>)));
+      
     m_accountsListModel->editAccount(index);
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic