Merge lp:~kmhpfoss/gtg/bug-fix- into lp:~gtg/gtg/old-trunk
Proposed by
Codee
Status: | Merged |
---|---|
Merged at revision: | 1251 |
Proposed branch: | lp:~kmhpfoss/gtg/bug-fix- |
Merge into: | lp:~gtg/gtg/old-trunk |
Diff against target: |
27 lines (+5/-0) 1 file modified
GTG/gtk/editor/editor.py (+5/-0) |
To merge this branch: | bzr merge lp:~kmhpfoss/gtg/bug-fix- |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Izidor Matušov | code, run | Approve | |
Review via email: mp+135490@code.launchpad.net |
Description of the change
Fixed the bug related to changing date manually mentioned in https:/
Included event handlers for entry focus lost event and enter key pressed event
To post a comment you must log in.
Hi codee,
I am going to nitpick about your code, don't take it personally :)
8 + ####### ####### ####### ####### Newly added bug fixes## ####### ####### ####### ###### get_object( "duedate_ entry") widget = self.builder. get_object( "startdate_ entry") _widget = self.builder. get_object( "closeddate_ entry") ####### ####### ####### #End this section - go to next### ####### ####### ####### ###
9 + #######
10 +
11 + self.duedate_widget = self.builder.
12 + self.startdate_
13 + self.closeddate
14 +
15 + #######
Why did you move that block of the code and add extra comments around it? It is not needed, put it please back.
As I was playing with your solution, I found out that we were missing refresh_editor() call after the date_changed() was called. You can solve this bug by just one additional line. Call refresh_editor() method within date_changed().
In the end it would result in much more cleaner and simplier solution for this bug -- only one line change! If you have any questions, feel free to ask; either on IRC or here in comments.