[Bug 31087] New: ChannelRequest::immutableProperties() initially returns invalid property values

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Oct 24 21:39:40 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=31087

           Summary: ChannelRequest::immutableProperties() initially
                    returns invalid property values
           Product: Telepathy
           Version: git master
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: medium
         Component: tp-qt4
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: artemgarmash at gmail.com
         QAContact: telepathy-bugs at lists.freedesktop.org


... because they are not extracted in ChannelRequest::Private::Private(...):

--- a/TelepathyQt4/channel-request.cpp
+++ b/TelepathyQt4/channel-request.cpp
@@ -127,7 +127,7 @@ ChannelRequest::Private::Private(ChannelRequest *parent,
         if (key.startsWith(QLatin1String(TELEPATHY_INTERFACE_CHANNEL_REQUEST
"."))
                 && key.count(QLatin1Char('.')) ==
                     QString::fromAscii(TELEPATHY_INTERFACE_CHANNEL_REQUEST
".").count(QLatin1Char('.'))) {
-           
mainProps.insert(key.remove(QLatin1String(TELEPATHY_INTERFACE_CHANNEL_REQUEST
".")),
+           
mainProps.insert(QString(key).remove(QLatin1String(TELEPATHY_INTERFACE_CHANNEL_REQUEST
".")),
                     immutableProperties.value(key));
         }
     }


This may cause various warnings and a failed assertion.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list