Skip to content

Commit

Permalink
setup: Unselect Add button in Select Input Method dialog
Browse files Browse the repository at this point in the history
After click "More" ListBoxRow cell in the "Select an input method"
dialog, "Add" button is sensitive but clicking "Add" button causes
a SEGV in enginedialog.py:get_selected_engine() because the more cell
has no engine memmber.

BUG=rhbz#2213145
  • Loading branch information
fujiwarat committed Jun 11, 2023
1 parent 03a486c commit 4831ed5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup/enginedialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ibus - The Input Bus
#
# Copyright (c) 2015 Peng Huang <shawn.p.huang@gmail.com>
# Copyright (c) 2015-2021 Takao Fujiwara <takao.fujiwara1@gmail.com>
# Copyright (c) 2015-2023 Takao Fujiwara <takao.fujiwara1@gmail.com>
# Copyright (c) 2013-2015 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or
Expand Down Expand Up @@ -145,6 +145,8 @@ def __list_filter(self, row, data):

def __row_activated(self, box, row):
if row == self.__more_row:
# Undo sensitive Gtk.ResponseType.APPLY button
self.__list.unselect_row(row)
self.__show_more()
return
if row.back:
Expand Down

0 comments on commit 4831ed5

Please sign in to comment.