summaryrefslogtreecommitdiffstats
path: root/src/client/PatchModel.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-13 02:57:36 +0000
committerDavid Robillard <d@drobilla.net>2011-05-13 02:57:36 +0000
commit198560d5fd499ab14eb4e130ee74e21fa86674a4 (patch)
treeeb7bd2ae2d19b6db2c28c79d1c7663fe5b1f49de /src/client/PatchModel.hpp
parent981c7950a6f5fc9f22decaee261556d20b641d5c (diff)
downloadingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.gz
ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.bz2
ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.zip
Make models const in client code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3259 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PatchModel.hpp')
-rw-r--r--src/client/PatchModel.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/PatchModel.hpp b/src/client/PatchModel.hpp
index 73930189..dbd54c03 100644
--- a/src/client/PatchModel.hpp
+++ b/src/client/PatchModel.hpp
@@ -57,10 +57,10 @@ public:
* not editable (control mode) you can just change controllers (performing)
*/
bool get_editable() const { return _editable; }
- void set_editable(bool e) {
+ void set_editable(bool e) const {
if (_editable != e) {
_editable = e;
- _signal_editable.emit(e);
+ const_cast<PatchModel*>(this)->signal_editable().emit(e);
}
}
@@ -90,7 +90,7 @@ private:
const Ingen::Port* dst_port);
SharedPtr<Connections> _connections;
- bool _editable;
+ mutable bool _editable;
};
} // namespace Client