summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorNick Mainsbridge <beatroute@iprimus.com.au>2006-04-20 11:41:45 +0000
committerNick Mainsbridge <beatroute@iprimus.com.au>2006-04-20 11:41:45 +0000
commitd7e728476a18bc024ae18705aa9d32ea21a1c4af (patch)
tree54f075f9fc3ee25b04014f683ea48e503b6d643d /gtk2_ardour/editor_ops.cc
parent8ca561f8d322d237d7aaa74ebf82f6892064da94 (diff)
Add a stock question image to the choices dialog, other general dialog love.. Forgot to mention that in the last commit the default snapshot name has been modified for slightly better alphabetical sorting goodness (year is now first, weekday last).
git-svn-id: svn://localhost/trunk/ardour2@459 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index 192269eb15..3fb1d40c19 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -190,17 +190,17 @@ Do you really want to destroy %1 ?"),
(selected > 1 ?
_("these regions") : _("this region")));
+ choices.push_back (_("No, do nothing."));
+
if (selected > 1) {
choices.push_back (_("Yes, destroy them."));
} else {
choices.push_back (_("Yes, destroy it."));
}
- choices.push_back (_("No, do nothing."));
-
Gtkmm2ext::Choice prompter (prompt, choices);
- if (prompter.run() != 0) { /* first choice */
+ if (prompter.run() == 0) { /* first choice */
return;
}
@@ -3226,12 +3226,12 @@ Editor::remove_last_capture ()
prompt = _("Do you really want to destroy the last capture?"
"\n(This is destructive and cannot be undone)");
- choices.push_back (_("Yes, destroy it."));
choices.push_back (_("No, do nothing."));
+ choices.push_back (_("Yes, destroy it."));
Gtkmm2ext::Choice prompter (prompt, choices);
- if (prompter.run () == 0) {
+ if (prompter.run () == 1) {
session->remove_last_capture ();
}