InstrumentTrack: do not try to load "libconnection.so" in compat code

In compat code of InstrumentTrack::loadTrackSpecificSettings() also
check for nodeName being equal to ControllerConnection::classNodeName().
This avoids trying to load the non-existing instrument "connection".
In master branch this has been fixed ugly in commit 22c877d4 before,
however implement a cleaner solution which is also suitable for
backporting.

Closes #3021259.
(cherry picked from commit 65311ef2b4)
This commit is contained in:
Tobias Doerffel
2010-08-15 13:56:25 +02:00
parent b9f5795da6
commit cd08109847
3 changed files with 17 additions and 10 deletions

View File

@@ -5,6 +5,7 @@
* loading project
*
* Copyright (c) 2008 Paul Giblock <pgllama/at/gmail.com>
* Copyright (c) 2010 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -80,7 +81,17 @@ public:
virtual void saveSettings( QDomDocument & _doc, QDomElement & _this );
virtual void loadSettings( const QDomElement & _this );
virtual QString nodeName() const;
static inline const QString classNodeName()
{
return "connection";
}
virtual QString nodeName() const
{
return classNodeName();
}
public slots:
void deleteConnection();