Merge lp:~dobey/software-center/mvo-lp1308354 into lp:software-center

Proposed by dobey on 2015-12-18
Status: Merged
Approved by: dobey on 2015-12-18
Approved revision: 3336
Merged at revision: 3336
Proposed branch: lp:~dobey/software-center/mvo-lp1308354
Merge into: lp:software-center
Diff against target: 13 lines (+3/-0)
1 file modified
softwarecenter/ui/gtk3/app.py (+3/-0)
To merge this branch: bzr merge lp:~dobey/software-center/mvo-lp1308354
Reviewer Review Type Date Requested Status
dobey Approve on 2015-12-18
Review via email: mp+280994@code.launchpad.net

Commit message

Disable paste when search entry not visible.

To post a comment you must log in.
dobey (dobey) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'softwarecenter/ui/gtk3/app.py'
2--- softwarecenter/ui/gtk3/app.py 2013-07-24 15:01:22 +0000
3+++ softwarecenter/ui/gtk3/app.py 2015-12-18 19:52:27 +0000
4@@ -998,6 +998,9 @@
5 self.active_pane.app_details_view.desc.copy_clipboard()
6
7 def on_menuitem_paste_activate(self, menuitem):
8+ # LP: #1308354
9+ if self.active_pane.searchentry.get_property("visible") == False:
10+ return
11 self.active_pane.searchentry.paste_clipboard()
12
13 def on_menuitem_delete_activate(self, menuitem):

Subscribers

People subscribed via source and target branches