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
c5941e99
Commit
c5941e99
authored
Jun 24, 2010
by
Luci Stanescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the enabling of call buttons when the search box contains text
parent
c34f9daf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mainwindow.py
blink/mainwindow.py
+2
-2
No files found.
blink/mainwindow.py
View file @
c5941e99
...
@@ -208,7 +208,7 @@ class MainWindow(base_class, ui_class):
...
@@ -208,7 +208,7 @@ class MainWindow(base_class, ui_class):
if
text
:
if
text
:
self
.
switch_view_button
.
view
=
SwitchViewButton
.
ContactView
self
.
switch_view_button
.
view
=
SwitchViewButton
.
ContactView
selected_items
=
self
.
search_list
.
selectionModel
()
.
selectedIndexes
()
selected_items
=
self
.
search_list
.
selectionModel
()
.
selectedIndexes
()
self
.
enable_call_buttons
(
account_manager
.
default_account
is
not
None
and
len
(
selected_items
)
=
=
1
)
self
.
enable_call_buttons
(
account_manager
.
default_account
is
not
None
and
len
(
selected_items
)
<
=
1
)
else
:
else
:
selected_items
=
self
.
contact_list
.
selectionModel
()
.
selectedIndexes
()
selected_items
=
self
.
contact_list
.
selectionModel
()
.
selectedIndexes
()
self
.
enable_call_buttons
(
account_manager
.
default_account
is
not
None
and
len
(
selected_items
)
==
1
and
type
(
self
.
contact_model
.
data
(
selected_items
[
0
]))
is
Contact
)
self
.
enable_call_buttons
(
account_manager
.
default_account
is
not
None
and
len
(
selected_items
)
==
1
and
type
(
self
.
contact_model
.
data
(
selected_items
[
0
]))
is
Contact
)
...
@@ -223,7 +223,7 @@ class MainWindow(base_class, ui_class):
...
@@ -223,7 +223,7 @@ class MainWindow(base_class, ui_class):
def
_SH_SearchListSelectionChanged
(
self
,
selected
,
deselected
):
def
_SH_SearchListSelectionChanged
(
self
,
selected
,
deselected
):
account_manager
=
AccountManager
()
account_manager
=
AccountManager
()
selected_items
=
self
.
search_list
.
selectionModel
()
.
selectedIndexes
()
selected_items
=
self
.
search_list
.
selectionModel
()
.
selectedIndexes
()
self
.
enable_call_buttons
(
account_manager
.
default_account
is
not
None
and
len
(
selected_items
)
=
=
1
)
self
.
enable_call_buttons
(
account_manager
.
default_account
is
not
None
and
len
(
selected_items
)
<
=
1
)
def
_SH_SessionListSelectionChanged
(
self
,
selected
,
deselected
):
def
_SH_SessionListSelectionChanged
(
self
,
selected
,
deselected
):
selected_indexes
=
selected
.
indexes
()
selected_indexes
=
selected
.
indexes
()
...
...
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