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
c4217461
Commit
c4217461
authored
Jun 29, 2010
by
Luci Stanescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved automatic switching of presence status
parent
e8e82b36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mainwindow.py
blink/mainwindow.py
+4
-1
No files found.
blink/mainwindow.py
View file @
c4217461
...
...
@@ -229,12 +229,15 @@ class MainWindow(base_class, ui_class):
self
.
display_name
.
setText
(
account
.
display_name
)
self
.
display_name
.
setEnabled
(
True
)
self
.
activity_note
.
setEnabled
(
True
)
self
.
status
.
setEnabled
(
True
)
if
not
self
.
session_model
.
active_sessions
:
self
.
status
.
setCurrentIndex
(
self
.
idle_status_index
)
else
:
self
.
display_name
.
clear
()
self
.
display_name
.
setEnabled
(
False
)
self
.
activity_note
.
setEnabled
(
False
)
self
.
status
.
setEnabled
(
False
)
self
.
status
.
setCurrentIndex
(
self
.
status
.
findText
(
u'Offline'
))
def
_SH_MakeConference
(
self
):
self
.
session_model
.
conferenceSessions
([
session
for
session
in
self
.
session_model
.
sessions
if
session
.
conference
is
None
and
not
session
.
pending_removal
])
...
...
@@ -293,7 +296,7 @@ class MainWindow(base_class, ui_class):
else
:
self
.
conference_button
.
setEnabled
(
len
([
session
for
session
in
self
.
session_model
.
sessions
if
session
.
conference
is
None
and
not
session
.
pending_removal
])
>
1
)
self
.
conference_button
.
setChecked
(
False
)
if
self
.
session_model
.
active_sessions
:
if
self
.
s
tatus
.
currentText
()
!=
u'Offline'
and
self
.
s
ession_model
.
active_sessions
:
self
.
status
.
setCurrentIndex
(
self
.
status
.
findText
(
u'On the phone'
))
else
:
self
.
status
.
setCurrentIndex
(
self
.
idle_status_index
)
...
...
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