From: <sag...@us...> - 2014-03-24 14:52:02
|
Revision: 3957 http://sourceforge.net/p/modplug/code/3957 Author: saga-games Date: 2014-03-24 14:51:53 +0000 (Mon, 24 Mar 2014) Log Message: ----------- [Fix] Removing a plugin and cloning plugins didn't set the document as modified (http://bugs.openmpt.org/view.php?id=494) Modified Paths: -------------- trunk/OpenMPT/mptrack/SelectPluginDialog.cpp trunk/OpenMPT/mptrack/View_gen.cpp Modified: trunk/OpenMPT/mptrack/SelectPluginDialog.cpp =================================================================== --- trunk/OpenMPT/mptrack/SelectPluginDialog.cpp 2014-03-24 12:50:32 UTC (rev 3956) +++ trunk/OpenMPT/mptrack/SelectPluginDialog.cpp 2014-03-24 14:51:53 UTC (rev 3957) @@ -173,13 +173,14 @@ } changed = true; } - } else + } else if(m_pPlugin->IsValidPlugin()) { // No effect CriticalSection cs; m_pPlugin->Destroy(); // Clear plugin info MemsetZero(m_pPlugin->Info); + changed = true; } //remember window size: @@ -190,7 +191,7 @@ TrackerSettings::Instance().gnPlugWindowWidth = rect.right - rect.left; TrackerSettings::Instance().gnPlugWindowHeight = rect.bottom - rect.top; - if (changed) + if(changed) { if(m_pPlugin->Info.dwPluginId2) TrackerSettings::Instance().gnPlugWindowLast = m_pPlugin->Info.dwPluginId2; Modified: trunk/OpenMPT/mptrack/View_gen.cpp =================================================================== --- trunk/OpenMPT/mptrack/View_gen.cpp 2014-03-24 12:50:32 UTC (rev 3956) +++ trunk/OpenMPT/mptrack/View_gen.cpp 2014-03-24 14:51:53 UTC (rev 3957) @@ -1426,6 +1426,9 @@ m_CbnPlugin.SetCurSel(dlg.GetSlot()); OnPluginChanged(); + + if(sndFile.GetModSpecifications().supportsPlugins) + GetDocument()->SetModified(); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |