diff options
author | André Nusser <andre.nusser@googlemail.com> | 2015-11-01 21:00:05 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-11-04 17:52:00 -0500 |
commit | 6ccffbaf0937c7814f3c49510859d13bc033df99 (patch) | |
tree | e0ce798c754ae56e9535182d6900f8fcefee555d /gtk2_ardour/utils_videotl.cc | |
parent | e8a832f03f300ff532f108f24663a4bded7e7e0d (diff) |
Improve behavior of overwrite_file_dialog.
- Make overwrite file dialogs transient.
- Cancelling the overwrite dialog doesn't close initial dialog.
Diffstat (limited to 'gtk2_ardour/utils_videotl.cc')
-rw-r--r-- | gtk2_ardour/utils_videotl.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/utils_videotl.cc b/gtk2_ardour/utils_videotl.cc index 0c94f378f0..b62ac9433c 100644 --- a/gtk2_ardour/utils_videotl.cc +++ b/gtk2_ardour/utils_videotl.cc @@ -46,7 +46,7 @@ using namespace ARDOUR; using namespace VideoUtils; bool -VideoUtils::confirm_video_outfn (std::string outfn, std::string docroot) +VideoUtils::confirm_video_outfn (Gtk::Window& parent, std::string outfn, std::string docroot) { /* replace docroot's '/' to G_DIR_SEPARATOR for the comparison */ size_t look_here = 0; @@ -68,7 +68,8 @@ VideoUtils::confirm_video_outfn (std::string outfn, std::string docroot) } if (Glib::file_test(outfn, Glib::FILE_TEST_EXISTS)) { - bool overwrite = ARDOUR_UI_UTILS::overwrite_file_dialog (_("Confirm Overwrite"), + bool overwrite = ARDOUR_UI_UTILS::overwrite_file_dialog (parent, + _("Confirm Overwrite"), _("A file with the same name already exists. Do you want to overwrite it?")); if (!overwrite) { |