mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Bugfix Duplicate input mapping
This commit is contained in:
@@ -742,9 +742,9 @@ void Session::swapSourceCallback(uint from, uint to)
|
|||||||
void Session::copySourceCallback(uint from, uint to)
|
void Session::copySourceCallback(uint from, uint to)
|
||||||
{
|
{
|
||||||
if ( input_callbacks_.count(from) > 0 ) {
|
if ( input_callbacks_.count(from) > 0 ) {
|
||||||
auto result = input_callbacks_.equal_range(from);
|
auto from_callbacks = getSourceCallbacks(from);
|
||||||
for (auto it = result.first; it != result.second; ++it) {
|
for (auto it = from_callbacks.cbegin(); it != from_callbacks.cend(); ++it){
|
||||||
assignSourceCallback(to, it->second.source_, it->second.model_->clone() );
|
assignSourceCallback(to, it->first, it->second->clone() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user