--- a/branches/logical-instruments/rosegarden/src/commands/studio/CreateOrDeleteDeviceCommand.cpp
+++ b/branches/logical-instruments/rosegarden/src/commands/studio/CreateOrDeleteDeviceCommand.cpp
@@ -96,6 +96,7 @@
         m_studio->addDevice(m_name, m_deviceId, m_baseInstrumentId, m_type);
         Device *device = m_studio->getDevice(m_deviceId);
         if (device) {
+            device->setConnection(m_connection);
             MidiDevice *md = dynamic_cast<MidiDevice *>(device);
             if (md) md->setDirection(m_direction);
         }