File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -827,6 +827,7 @@ void CMUSHclientDoc::SetUpOutputWindow (void)
827
827
for (vector<string>::const_iterator i = v.begin (); i != v.end (); i++)
828
828
{
829
829
strPath = i->c_str ();
830
+ string sGlobalPluginPath (Make_Absolute_Path (strPath));
830
831
bool bAlreadyLoaded = false ;
831
832
832
833
// see if we already have this one
@@ -835,8 +836,10 @@ void CMUSHclientDoc::SetUpOutputWindow (void)
835
836
++pit)
836
837
{
837
838
CPlugin * p = *pit;
839
+ // convert filename to absolute path for a better comparison
840
+ string sThisPluginPath (Make_Absolute_Path (p->m_strSource ));
838
841
839
- if (p-> m_strSource == strPath )
842
+ if (sGlobalPluginPath == sThisPluginPath )
840
843
{
841
844
bAlreadyLoaded = true ;
842
845
p->m_bGlobal = true ;
@@ -853,8 +856,10 @@ void CMUSHclientDoc::SetUpOutputWindow (void)
853
856
++pit)
854
857
{
855
858
CPlugin * p = *pit;
859
+ // convert filename to absolute path for a better comparison
860
+ string sThisPluginPath (Make_Absolute_Path (p->m_strSource ));
856
861
857
- if (p-> m_strSource == strPath )
862
+ if (sGlobalPluginPath == sThisPluginPath )
858
863
{
859
864
p->m_bGlobal = true ;
860
865
break ;
You can’t perform that action at this time.
0 commit comments