Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /branches/logical-instruments/rosegarden/src/document/RosegardenDocument.cpp [r12860] .. [r12861] Maximize Restore

  Switch to side-by-side view

--- a/branches/logical-instruments/rosegarden/src/document/RosegardenDocument.cpp
+++ b/branches/logical-instruments/rosegarden/src/document/RosegardenDocument.cpp
@@ -1259,12 +1259,7 @@
 
     // First make sure all MIDI devices know their current connections
     //
-    DeviceList *devices = m_studio.getDevices();
-    for (uint i = 0; i < devices->size(); ++i) {
-        DeviceId id = (*devices)[i]->getId();
-        QString connection = RosegardenSequencer::getInstance()->getConnection(id);
-        (*devices)[i]->setConnection(qstrtostr(connection));
-    }
+    m_studio.resyncDeviceConnections();
 
     if (progress) {
         progress->setValue(10);