working
diff --git a/digesttreescene.cpp b/digesttreescene.cpp
index 4bf699e..30c087e 100644
--- a/digesttreescene.cpp
+++ b/digesttreescene.cpp
@@ -66,6 +66,9 @@
void
DigestTreeScene::msgReceived(QString prefix, QString nick)
{
+#ifdef __DEBUG
+ std::cout << "Finding " << prefix.toStdString() << std::endl;
+#endif
Roster_iterator it = m_roster.find(prefix);
if (it != m_roster.end())
{
@@ -89,6 +92,18 @@
previouslyUpdatedUser = p;
}
+#ifdef __DEBUG
+ else
+ {
+ std::cout << "Couldn't find prefix, let's check"<< std::endl;
+ Roster_iterator ii = m_roster.begin();
+ while (ii != m_roster.end())
+ {
+ std::cout <<"Prefix: " << ii.key().toStdString() << std::endl;
+ ++ii;
+ }
+ }
+#endif
}
void