Add external drive references for most file-browsers

This fixes an issue on MacOS/X to only show non-root volumes in
the file-open dialog. They're just as valid for save-as, export, video
files etc.

In case of a 2nd internal disk, it is also a valid choice as default
folder for new sessions.
This commit is contained in:
Robin Gareus 2019-01-02 17:37:03 +01:00
parent ac9329f907
commit 6f01598297
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
16 changed files with 36 additions and 0 deletions

View file

@ -22,6 +22,8 @@
#include "pbd/compose.h"
#include "pbd/shortpath.h"
#include "gtkmm2ext/utils.h"
#include "search_path_option.h"
#include "pbd/i18n.h"
@ -36,6 +38,7 @@ SearchPathOption::SearchPathOption (const string& pathname, const string& label,
, _set (set)
, add_chooser (_("Select folder to search for media"), FILE_CHOOSER_ACTION_SELECT_FOLDER)
{
Gtkmm2ext::add_volume_shortcuts (add_chooser);
add_chooser.signal_file_set().connect (sigc::mem_fun (*this, &SearchPathOption::path_chosen));
HBox* hbox = manage (new HBox);