Fix view not closing of not active.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@257 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
86e358a89a
commit
6f740de0ad
PowerEditor/src
|
@ -798,7 +798,7 @@ void Notepad_plus::doClose(BufferID id, int whichOne) {
|
||||||
|
|
||||||
//Do all the works
|
//Do all the works
|
||||||
removeBufferFromView(id, whichOne);
|
removeBufferFromView(id, whichOne);
|
||||||
if (nrDocs == 1 && canHideView(currentView()))
|
if (nrDocs == 1 && canHideView(whichOne))
|
||||||
{ //close the view if both visible
|
{ //close the view if both visible
|
||||||
hideView(whichOne);
|
hideView(whichOne);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue