Fix an issue in Window dialog
The bug: after closing last file opened in 2nd view in Window sialog, the last file opened in 2nd view in Notepad++ is closed, but remain in Window dialog. This PR is a workaround solution to close Window dialog if the last document is closed. Fix #8697, close #8721pull/8807/head
parent
230c7ef235
commit
7c7dcd8fcc
|
@ -848,7 +848,9 @@ void WindowsDlg::doClose()
|
||||||
}
|
}
|
||||||
delete[] nmdlg.Items;
|
delete[] nmdlg.Items;
|
||||||
|
|
||||||
if (_pTab->nbItem() != _idxMap.size())
|
if (_idxMap.size() < 1)
|
||||||
|
::SendMessage(_hSelf, WM_CLOSE, 0, 0);
|
||||||
|
else if (_pTab->nbItem() != _idxMap.size())
|
||||||
doRefresh(true);
|
doRefresh(true);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue