mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
Improve behavior of overwrite_file_dialog.
- Make overwrite file dialogs transient. - Cancelling the overwrite dialog doesn't close initial dialog.
This commit is contained in:
parent
e8a832f03f
commit
6ccffbaf09
12 changed files with 180 additions and 110 deletions
|
|
@ -929,9 +929,9 @@ ARDOUR_UI_UTILS::windows_overlap (Gtk::Window *a, Gtk::Window *b)
|
|||
}
|
||||
|
||||
bool
|
||||
ARDOUR_UI_UTILS::overwrite_file_dialog (string title, string text)
|
||||
ARDOUR_UI_UTILS::overwrite_file_dialog (Gtk::Window& parent, string title, string text)
|
||||
{
|
||||
ArdourDialog dialog (title, true);
|
||||
ArdourDialog dialog (parent, title, true);
|
||||
Label label (text);
|
||||
|
||||
dialog.get_vbox()->pack_start (label, true, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue