Make sure that deleting/adding/editting works reasonably
commit5ea41470253ac298a60f71ec9d098803e825b9b3
authorJan Kundrát <jkt@flaska.net>
Fri, 7 Dec 2012 23:46:57 +0000 (8 00:46 +0100)
committerJan Kundrát <jkt@flaska.net>
Sat, 8 Dec 2012 00:06:02 +0000 (8 01:06 +0100)
tree2f4a1065d20460dfa89d7fad1a3e601db2ab6cca
parentd325c4b0da27f74f6f3f929f89503fcc1f541550
Make sure that deleting/adding/editting works reasonably

- Enable buttons only when it makes sense
- Edit the correct item
- Revert the addition when user rejects the dialog
- Fix deleting
src/Gui/SettingsDialog.cpp
src/Gui/SettingsDialog.h