Merge lp:~amichai2/software-properties/edit-on-doubleclick into lp:software-properties

Proposed by amichair
Status: Needs review
Proposed branch: lp:~amichai2/software-properties/edit-on-doubleclick
Merge into: lp:software-properties
Diff against target: 40 lines (+4/-10)
1 file modified
softwareproperties/kde/SoftwarePropertiesKDE.py (+4/-10)
To merge this branch: bzr merge lp:~amichai2/software-properties/edit-on-doubleclick
Reviewer Review Type Date Requested Status
Brian Murray Pending
Review via email: mp+323443@code.launchpad.net

Description of the change

Made the edit dialog pop up when double-clicking a source. There were two non-working implementations in the code already, which I replaced with one that works.

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

This looks good to me but I'm not really in a position to easily test this change since its KDE. Could you provide some screenshots or video showing how it works? Thanks!

Revision history for this message
amichair (amichai2) wrote :

Hi, I don't see how screenshots will help... it looks exactly the same as when you select a source and then click the 'Edit' button. Except you can double-click the source instead of using the button. Nothing is different visually from the current/past behavior.

Revision history for this message
amichair (amichai2) wrote :

So, this has been waiting around for months... will it be merged? I was hoping to see it in the upcoming release.

Revision history for this message
amichair (amichai2) wrote :

Or the next next release?

Unmerged revisions

994. By amichair

software-properties-kde: fixed editing when source is double-clicked

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'softwareproperties/kde/SoftwarePropertiesKDE.py'
--- softwareproperties/kde/SoftwarePropertiesKDE.py 2015-06-16 11:11:36 +0000
+++ softwareproperties/kde/SoftwarePropertiesKDE.py 2017-04-30 23:04:28 +0000
@@ -115,6 +115,7 @@
115 self.userinterface.button_add.clicked.connect(self.on_add_clicked)115 self.userinterface.button_add.clicked.connect(self.on_add_clicked)
116 self.userinterface.treeview_sources.itemChanged.connect(self.on_isv_source_toggled)116 self.userinterface.treeview_sources.itemChanged.connect(self.on_isv_source_toggled)
117 self.userinterface.treeview_sources.itemClicked.connect(self.on_treeview_sources_cursor_changed)117 self.userinterface.treeview_sources.itemClicked.connect(self.on_treeview_sources_cursor_changed)
118 self.userinterface.treeview_sources.itemDoubleClicked.connect(self.on_isv_source_activated)
118 self.userinterface.treeview_cdroms.itemChanged.connect(self.on_cdrom_source_toggled)119 self.userinterface.treeview_cdroms.itemChanged.connect(self.on_cdrom_source_toggled)
119 self.userinterface.treeview2.itemClicked.connect(self.on_treeview_keys_cursor_changed)120 self.userinterface.treeview2.itemClicked.connect(self.on_treeview_keys_cursor_changed)
120 button_close = self.userinterface.buttonBox.button(QDialogButtonBox.Close)121 button_close = self.userinterface.buttonBox.button(QDialogButtonBox.Close)
@@ -476,11 +477,6 @@
476 self.on_sources_drag_data_received)477 self.on_sources_drag_data_received)
477 """478 """
478479
479 def on_isv_source_activate(self, treeview, path, column):
480 """Open the edit dialog if a channel was double clicked"""
481 ##FIXME TODO
482 ##self.on_edit_clicked(treeview)
483
484 def on_treeview_sources_cursor_changed(self, item, column):480 def on_treeview_sources_cursor_changed(self, item, column):
485 """set the sensitiveness of the edit and remove button481 """set the sensitiveness of the edit and remove button
486 corresponding to the selected channel"""482 corresponding to the selected channel"""
@@ -642,13 +638,11 @@
642 self.set_modified_sourceslist()638 self.set_modified_sourceslist()
643 self.show_isv_sources()639 self.show_isv_sources()
644640
645 # FIXME:outstanding from merge641 def on_isv_source_activated(self, item, column):
646 def on_isv_source_activated(self, treeview, path, column):
647 """Open the edit dialog if a channel was double clicked"""642 """Open the edit dialog if a channel was double clicked"""
648 ##FIXME TODO
649 # check if the channel can be edited643 # check if the channel can be edited
650 if self.button_edit.get_property("sensitive") == True:644 if self.userinterface.button_edit.isEnabled():
651 self.on_edit_clicked(treeview)645 self.on_edit_clicked()
652646
653 def on_remove_clicked(self):647 def on_remove_clicked(self):
654 """Remove the selected source"""648 """Remove the selected source"""

Subscribers

People subscribed via source and target branches

to status/vote changes: