Browse Source

Maybe prevent closing session when donwload in progress

master
boisso 7 years ago
parent
commit
1733013dec
  1. 10
      k-meleon/UnknownContentTypeHandler.cpp
  2. 5
      k-meleon/UnknownContentTypeHandler.h

10
k-meleon/UnknownContentTypeHandler.cpp

@ -1037,6 +1037,7 @@ BEGIN_MESSAGE_MAP(CProgressDialog, CDialog)
ON_COMMAND(IDC_OPENFOLDER, OnOpenFolder)
ON_COMMAND(WM_CLOSE, OnClose)
ON_BN_CLICKED(IDC_CLOSE_WHEN_DONE, OnBnClickedCloseWhenDone)
ON_WM_QUERYENDSESSION()
END_MESSAGE_MAP()
void CProgressDialog::Cancel() {
@ -1501,4 +1502,13 @@ void COpenSaveDlg::OnDestroy()
DestroyIcon(m_cFileIcon.GetIcon());
}
BOOL CProgressDialog::OnQueryEndSession()
{
if (!__super::OnQueryEndSession())
return FALSE;
if (m_bWindow)
return FALSE;
return TRUE;
}

5
k-meleon/UnknownContentTypeHandler.h

@ -138,10 +138,9 @@ protected:
public:
afx_msg void OnBnClickedCloseWhenDone();
afx_msg BOOL OnQueryEndSession();
};
// Boîte de dialogue COpenSaveDlg
class COpenSaveDlg : public CDialog
{
//DECLARE_DYNAMIC(COpenSaveDlg)
@ -149,8 +148,6 @@ class COpenSaveDlg : public CDialog
public:
COpenSaveDlg(CWnd* pParent = NULL); // constructeur standard
virtual ~COpenSaveDlg();
// Données de boîte de dialogue
enum { IDD = IDD_OPENSAVE };
protected:

Loading…
Cancel
Save