~ubuntu-branches/debian/sid/filezilla/sid

« back to all changes in this revision

Viewing changes to src/interface/dialogex.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adrien Cunin
  • Date: 2009-11-15 17:15:41 UTC
  • mfrom: (1.3.5 upstream) (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091115171541-nvo6m3hl3iof0lnc
* New upstream release
* Updated previous changelog entry to mention desktop notifications as a new
  feature

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
EVT_CHAR_HOOK(wxDialogEx::OnChar)
6
6
END_EVENT_TABLE()
7
7
 
 
8
int wxDialogEx::m_shown_dialogs = 0;
 
9
 
8
10
void wxDialogEx::OnChar(wxKeyEvent& event)
9
11
{
10
12
        if (event.GetKeyCode() == WXK_ESCAPE)
67
69
        // Could happen during drag&drop with notification dialogs.
68
70
        ::ReleaseCapture();
69
71
#endif
70
 
        return wxDialog::ShowModal();
 
72
 
 
73
        m_shown_dialogs++;
 
74
 
 
75
        int ret = wxDialog::ShowModal();
 
76
 
 
77
        m_shown_dialogs--;
 
78
 
 
79
        return ret;
71
80
}
72
81
 
73
82
bool wxDialogEx::ReplaceControl(wxWindow* old, wxWindow* wnd)