Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
a147c95d
Commit
a147c95d
authored
Feb 27, 2014
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue encoding the contact uri list in drag and drop operations
parent
48eb22a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
contacts.py
blink/contacts.py
+1
-1
sessions.py
blink/sessions.py
+1
-2
No files found.
blink/contacts.py
View file @
a147c95d
...
@@ -2798,7 +2798,7 @@ class ContactDetailModel(QAbstractListModel):
...
@@ -2798,7 +2798,7 @@ class ContactDetailModel(QAbstractListModel):
if
contact_list
:
if
contact_list
:
mime_data
.
setData
(
'application/x-blink-contact-list'
,
QByteArray
(
pickle
.
dumps
(
contact_list
)))
mime_data
.
setData
(
'application/x-blink-contact-list'
,
QByteArray
(
pickle
.
dumps
(
contact_list
)))
if
contact_uris
:
if
contact_uris
:
mime_data
.
setData
(
'application/x-blink-contact-uri-list'
,
QByteArray
(
pickle
.
dumps
(
contact_uris
)))
mime_data
.
setData
(
'application/x-blink-contact-uri-list'
,
QByteArray
(
pickle
.
dumps
(
(
self
.
contact_detail
,
contact_uris
)
)))
return
mime_data
return
mime_data
def
dropMimeData
(
self
,
mime_data
,
action
,
row
,
column
,
parent_index
):
def
dropMimeData
(
self
,
mime_data
,
action
,
row
,
column
,
parent_index
):
...
...
blink/sessions.py
View file @
a147c95d
...
@@ -1701,13 +1701,12 @@ class AudioSessionModel(QAbstractListModel):
...
@@ -1701,13 +1701,12 @@ class AudioSessionModel(QAbstractListModel):
if
not
index
.
isValid
():
if
not
index
.
isValid
():
return
return
try
:
try
:
contact_uris
=
pickle
.
loads
(
str
(
mime_data
.
data
(
'application/x-blink-contact-uri-list'
)))
contact
,
contact
_uris
=
pickle
.
loads
(
str
(
mime_data
.
data
(
'application/x-blink-contact-uri-list'
)))
except
Exception
:
except
Exception
:
return
False
return
False
session
=
self
.
sessions
[
index
.
row
()]
session
=
self
.
sessions
[
index
.
row
()]
session_manager
=
SessionManager
()
session_manager
=
SessionManager
()
for
contact_uri
in
contact_uris
:
for
contact_uri
in
contact_uris
:
contact
=
contact_uri
.
contact
session_manager
.
create_session
(
contact
,
contact_uri
.
uri
,
[
StreamDescription
(
'audio'
)],
sibling
=
session
.
blink_session
)
session_manager
.
create_session
(
contact
,
contact_uri
.
uri
,
[
StreamDescription
(
'audio'
)],
sibling
=
session
.
blink_session
)
return
True
return
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment