Skip to content

Commit

Permalink
plugin loading correction
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed May 16, 2017
1 parent 9da02f3 commit 47ea439
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
4 changes: 4 additions & 0 deletions far/changelog
@@ -1,3 +1,7 @@
drkns 16.05.2017 07:34:39 +0000 - build 4962

1. Уточение процесса загрузки плагинов.

drkns 15.05.2017 14:39:00 +0000 - build 4961

1. Продолжение 4959 - отображением ошибок загрузки плагинов теперь заведует соответствующий загрузчик,
Expand Down
19 changes: 12 additions & 7 deletions far/plclass.cpp
Expand Up @@ -584,14 +584,19 @@ bool Plugin::LoadData()
strDescription = Info.Description;
strAuthor = Info.Author;

bool ok=true;
if(m_Guid != FarGuid && m_Guid != Info.Guid)
{
ok = m_Factory->GetOwner()->UpdateId(this, Info.Guid);
}
else
bool ok = false;

if (Info.Guid != FarGuid)
{
SetGuid(Info.Guid);
if (m_Guid != FarGuid && m_Guid != Info.Guid)
{
ok = m_Factory->GetOwner()->UpdateId(this, Info.Guid);
}
else
{
SetGuid(Info.Guid);
ok = true;
}
}

if (ok)
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4961)m4_dnl
m4_define(BUILD,4962)m4_dnl

0 comments on commit 47ea439

Please sign in to comment.