Include Volume Paths in Ardour's PathsDialog Widget

This fixes an issue on MacOS/X. Show non-root volumes to the sidebar
as shortcuts.
This commit is contained in:
Robin Gareus 2019-01-02 17:38:34 +01:00
parent 6f01598297
commit 552ede7695
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -25,6 +25,9 @@
#include "pbd/i18n.h"
#include "pbd/pathexpand.h"
#include "gtkmm2ext/utils.h"
#include "widgets/paths_dialog.h"
using namespace Gtk;
@ -112,6 +115,7 @@ PathsDialog::selection_changed () {
void
PathsDialog::add_path() {
Gtk::FileChooserDialog d (_("Add folder to search path"), Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER);
Gtkmm2ext::add_volume_shortcuts (d);
std::vector<int> selection = paths_list_view.get_selected();
if (selection.size() == 1 ) {