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
a2a7e55f
Commit
a2a7e55f
authored
Apr 09, 2014
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save conference rooms in combobox history and limit it to 20 entries
parent
59fcf8df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
sessions.py
blink/sessions.py
+8
-2
conference_dialog.ui
resources/conference_dialog.ui
+9
-0
No files found.
blink/sessions.py
View file @
a2a7e55f
...
...
@@ -4885,13 +4885,19 @@ class ConferenceDialog(base_class, ui_class):
def
join_conference
(
self
):
from
blink.contacts
import
URIUtils
current_text
=
self
.
room_button
.
currentText
()
if
self
.
room_button
.
findText
(
current_text
)
==
-
1
:
if
self
.
room_button
.
count
()
==
self
.
room_button
.
maxCount
():
self
.
room_button
.
removeItem
(
self
.
room_button
.
count
()
-
1
)
self
.
room_button
.
insertItem
(
0
,
current_text
)
account_manager
=
AccountManager
()
session_manager
=
SessionManager
()
account
=
account_manager
.
default_account
if
account
is
not
BonjourAccount
():
conference_uri
=
u'
%
s@
%
s'
%
(
self
.
room_button
.
currentText
()
,
account
.
server
.
conference_server
or
'conference.sip2sip.info'
)
conference_uri
=
u'
%
s@
%
s'
%
(
current_text
,
account
.
server
.
conference_server
or
'conference.sip2sip.info'
)
else
:
conference_uri
=
u'
%
s@
%
s'
%
(
self
.
room_button
.
currentText
()
,
'conference.sip2sip.info'
)
conference_uri
=
u'
%
s@
%
s'
%
(
current_text
,
'conference.sip2sip.info'
)
contact
,
contact_uri
=
URIUtils
.
find_contact
(
conference_uri
,
display_name
=
'Conference'
)
streams
=
[]
if
self
.
audio_button
.
isChecked
():
...
...
resources/conference_dialog.ui
View file @
a2a7e55f
...
...
@@ -53,6 +53,15 @@
<property
name=
"editable"
>
<bool>
true
</bool>
</property>
<property
name=
"maxVisibleItems"
>
<number>
20
</number>
</property>
<property
name=
"maxCount"
>
<number>
20
</number>
</property>
<property
name=
"insertPolicy"
>
<enum>
QComboBox::NoInsert
</enum>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
...
...
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