Set transient parent for missing-* dialogs at start

This commit is contained in:
Robin Gareus 2021-07-07 00:33:50 +02:00
parent 95bf443735
commit 005bd4f76f
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
9 changed files with 15 additions and 13 deletions

View file

@ -36,8 +36,8 @@ using namespace std;
using namespace ARDOUR;
using namespace PBD;
MissingFileDialog::MissingFileDialog (Session* s, const std::string& path, DataType type)
: ArdourDialog (_("Missing File"), true, false)
MissingFileDialog::MissingFileDialog (Gtk::Window& parent, Session* s, const std::string& path, DataType type)
: ArdourDialog (parent, _("Missing File"), true, false)
, filetype (type)
, is_absolute_path (Glib::path_is_absolute (path))
, chooser (_("Select a folder to search"), FILE_CHOOSER_ACTION_SELECT_FOLDER)