Add new comment

The problem is that it doesn't save the relative path, but rather the name. Therefore, the relative path it will always read will be the project directory, since that's equivalent to no path at all (only the name).

From the beginning, if you provided Qtractor with a valid path to the plugin (whether relative or absolute), Qtractor's first action is to load it. And if the "not found" warning doesn't appear. (I think it's in the session file)

It is unnecessary checks if it exists or not in the configuration paths... because if it's there, it's because it exists, regardless of where... whether within the paths defined in the configuration or in the paths defined by the session paths.

This seems to work, although I'm not sure if the last "return false" is necessary. As you say // Might never reach here! :)

// Check/sanitize plugin file-path to save (absolute->relative)...
bool qtractorPlugin::savePluginFilename (
	QString& sFilename, qtractorPluginType::Hint typeHint ) const
{
	// Care of internal pseudo-plugins...
	if (sFilename.isEmpty())
		return false;

	// LV2 plug-ins are identified by URI...
	if (typeHint == qtractorPluginType::Lv2)
		return true;



	// Force plugin relative path...
	qtractorSession *pSession = qtractorSession::getInstance();
	if (pSession) {
		sFilename = pSession->relativeFilePath(sFilename);
		return true;
	}

	// Might never reach here!...
	return false;
}
The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike> <pre> <p> <br>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.