1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2007 - 2017 Christian Schoenebeck * |
* Copyright (C) 2007 - 2020 Christian Schoenebeck * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
61 |
// notify all registered listeners |
// notify all registered listeners |
62 |
std::for_each( |
std::for_each( |
63 |
listeners.begin(), listeners.end(), |
listeners.begin(), listeners.end(), |
64 |
std::bind2nd(std::mem_fun(&InstrumentEditorListener::OnInstrumentEditorQuit), this) |
[this](InstrumentEditorListener* listener) { |
65 |
|
listener->OnInstrumentEditorQuit(this); |
66 |
|
} |
67 |
); |
); |
68 |
// done |
// done |
69 |
StopThread(); |
StopThread(); |