mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Fix opening links to in prefs notes (e.g. VST spec)
gtk's default URL open does not work on recent macOS and Windows.
This commit is contained in:
parent
b795d36cd3
commit
35851d0cc8
1 changed files with 5 additions and 0 deletions
|
|
@ -42,6 +42,7 @@
|
|||
|
||||
#include "pbd/configuration.h"
|
||||
#include "pbd/replace_all.h"
|
||||
#include "pbd/openuri.h"
|
||||
#include "pbd/strsplit.h"
|
||||
|
||||
#include "widgets/frame.h"
|
||||
|
|
@ -110,6 +111,10 @@ OptionEditorComponent::maybe_add_note (OptionEditorPage* p, int n)
|
|||
l->set_use_markup (true);
|
||||
l->set_line_wrap (true);
|
||||
p->table.attach (*l, 1, 3, n, n + 1, FILL | EXPAND);
|
||||
if (_note.find ("<a href=") != _note.npos) {
|
||||
l->property_track_visited_links() = false;
|
||||
l->signal_activate_link().connect ([](std::string const& url) { return PBD::open_uri (url); });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue