--- qsampler/trunk/src/qsamplerDeviceForm.ui.h 2005/03/31 14:17:19 487 +++ qsampler/trunk/src/qsamplerDeviceForm.ui.h 2005/03/31 16:26:40 488 @@ -39,6 +39,7 @@ m_pMainForm = NULL; m_pClient = NULL; m_iDirtySetup = 0; + m_iDirtyCount = 0; m_bNewDevice = false; m_deviceType = qsamplerDevice::None; m_pAudioItems = NULL; @@ -82,6 +83,12 @@ if (m_pMainForm) m_pMainForm->stabilizeForm(); + + // Signal special whether we changed the device set. + if (m_iDirtyCount > 0) { + m_iDirtyCount = 0; + emit devicesChanged(); + } } @@ -175,6 +182,7 @@ DeviceListView->setSelected(pDeviceItem, true); // Main session should be marked dirty. m_pMainForm->sessionDirty(); + m_iDirtyCount++; } } @@ -209,6 +217,7 @@ delete pItem; // Main session should be marked dirty. m_pMainForm->sessionDirty(); + m_iDirtyCount++; } }