Properly undo changes when cancelling out of the options gui using the ESC key
commitddd433a3021451db379ed992a75af0869606db8c
authorDavid Aguilar <davvid@gmail.com>
Sun, 13 Jan 2008 13:25:28 +0000 (13 05:25 -0800)
committerDavid Aguilar <davvid@gmail.com>
Sun, 13 Jan 2008 13:25:28 +0000 (13 05:25 -0800)
treec1f1d19a00fda9a869e75ac3890bf3d8bdc4fe5e
parentf653ab09ed2d288b96a9a5c2dfaafb0a9c7678c1
Properly undo changes when cancelling out of the options gui using the ESC key

Previously, hitting ESC to exit out of the options gui was not properly notifying
the main app about needing to update/revert the fonts back to their original values.
This fixes that problem and removes some code by specifying the connection between
the optionsgui.cancel_button signal and the optionsgui.reject slot in the ui file.
We then catch the reject signal in the controller and handle that.  The reason it
didn't work previously is that we were only handling the case were cancel was pressed
instead of explicitly handling the rejected() signal.

Signed-off by: David Aguilar <davvid@gmail.com>
ugitlibs/utilcontroller.py
ui/optionsgui.ui