Setting default button for rename dialog, fixes #5266
Bug fixes: - No event is now raised when user presses OK button or ENTER key without changing spot name - Some code cleanup
This commit is contained in:
@@ -294,11 +294,16 @@ private:
|
||||
public Gtk::Dialog
|
||||
{
|
||||
public:
|
||||
enum DialogButton {
|
||||
OkButton = 1,
|
||||
CancelButton = 2
|
||||
};
|
||||
|
||||
RenameDialog(const Glib::ustring &actualname, Gtk::Window &parent);
|
||||
Glib::ustring get_new_name();
|
||||
|
||||
private:
|
||||
Gtk::Entry newname_;
|
||||
Gtk::Entry* const newname_;
|
||||
};
|
||||
|
||||
ControlSpots spots_;
|
||||
|
Reference in New Issue
Block a user