Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
68615ee3
Commit
68615ee3
authored
15 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
make rename and remove buttons insensitive when no account is selected. Fixes #5577
parent
69d53e09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/config.py
+10
-5
10 additions, 5 deletions
src/config.py
with
10 additions
and
5 deletions
src/config.py
+
10
−
5
View file @
68615ee3
...
...
@@ -1485,8 +1485,8 @@ class AccountsWindow:
self
.
accounts_treeview
.
set_model
(
model
)
# column
renderer
=
gtk
.
CellRendererText
()
self
.
accounts_treeview
.
insert_column_with_attributes
(
-
1
,
_
(
'
Name
'
),
renderer
,
text
=
0
)
self
.
accounts_treeview
.
insert_column_with_attributes
(
-
1
,
_
(
'
Name
'
),
renderer
,
text
=
0
)
self
.
current_account
=
None
# When we fill info, we don't want to handle the changed signals
...
...
@@ -1503,7 +1503,8 @@ class AccountsWindow:
st
=
gajim
.
config
.
get
(
'
mergeaccounts
'
)
checkbutton
=
self
.
xml
.
get_object
(
'
merge_checkbutton
'
)
checkbutton
.
set_active
(
st
)
# prevent roster redraws by connecting the signal after button state is set
# prevent roster redraws by connecting the signal after button state is
# set
checkbutton
.
connect
(
'
toggled
'
,
self
.
on_merge_checkbutton_toggled
)
self
.
avahi_available
=
True
...
...
@@ -1625,8 +1626,12 @@ class AccountsWindow:
self
.
check_resend_relog
()
self
.
remove_button
.
set_sensitive
(
True
)
self
.
rename_button
.
set_sensitive
(
True
)
if
account
:
self
.
remove_button
.
set_sensitive
(
True
)
self
.
rename_button
.
set_sensitive
(
True
)
else
:
self
.
remove_button
.
set_sensitive
(
False
)
self
.
rename_button
.
set_sensitive
(
False
)
if
iter_
:
self
.
current_account
=
account
if
account
==
gajim
.
ZEROCONF_ACC_NAME
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment