X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1ec4e9c2b72a01a7ba7da569e0f8d04a81aaba10..2a45803fc3877afd0ae3ce356dfe216505165882:/samples/fswatcher/fswatcher.cpp diff --git a/samples/fswatcher/fswatcher.cpp b/samples/fswatcher/fswatcher.cpp index 0c2bdf62ff..890fd45ff5 100644 --- a/samples/fswatcher/fswatcher.cpp +++ b/samples/fswatcher/fswatcher.cpp @@ -420,7 +420,7 @@ void MyFrame::OnRemove(wxCommandEvent& WXUNUSED(event)) if (idx == -1) return; - bool ret; + bool ret = false; wxString path = m_filesList->GetItemText(idx).Mid(6); // This will tell wxFileSystemWatcher whether to dereference symlinks @@ -535,8 +535,12 @@ static wxString GetFSWEventChangeTypeName(int changeType) return "MODIFY"; case wxFSW_EVENT_ACCESS: return "ACCESS"; - case wxFSW_EVENT_ATTRIB: // Currently this is wxGTK-only + case wxFSW_EVENT_ATTRIB: // Currently this is wxGTK-only return "ATTRIBUTE"; +#ifdef wxHAS_INOTIFY + case wxFSW_EVENT_UNMOUNT: // Currently this is wxGTK-only + return "UNMOUNT"; +#endif case wxFSW_EVENT_WARNING: return "WARNING"; case wxFSW_EVENT_ERROR: