bugfix with DND when we mergeaccout or have only one account

This commit is contained in:
Yann Leboulanger 2005-08-04 10:43:02 +00:00
parent 6b26a5d332
commit bfca18b3a9
1 changed files with 4 additions and 1 deletions

View File

@ -1962,7 +1962,10 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response()
model, iter = treeselection.get_selected() model, iter = treeselection.get_selected()
path = model.get_path(iter) path = model.get_path(iter)
data = '' data = ''
if len(path) == 3: merge = 0
if gajim.config.get('mergeaccounts') or len(gajim.connections) == 1:
merge = 1
if len(path) == 3 - merge:
data = model[iter][3] data = model[iter][3]
selection.set(selection.target, 8, data) selection.set(selection.target, 8, data)