parent
f168ece461
commit
9de0846f3e
|
@ -1071,23 +1071,22 @@ void TREE_PROJECT_FRAME::FileWatcherReset()
|
||||||
wxString prj_dir = wxPathOnly( m_Parent->GetProjectFileName() );
|
wxString prj_dir = wxPathOnly( m_Parent->GetProjectFileName() );
|
||||||
|
|
||||||
// Prepare file watcher:
|
// Prepare file watcher:
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if( PathIsNetworkPathW( prj_dir.wc_str() ) )
|
if( PathIsNetworkPathW( prj_dir.wc_str() ) )
|
||||||
{
|
{
|
||||||
// Don't support network shares for now
|
// Don't support network shares for now
|
||||||
// SAMBA passes bad events to Windows and wxWidgets idiotically asserts
|
// SAMBA passes bad events to Windows and wxWidgets idiotically asserts
|
||||||
// rather than accepting vlaid event IDs
|
// rather than accepting vlaid event IDs
|
||||||
// Windows Server shares do not have this problem
|
// Windows Server shares do not have this problem
|
||||||
m_Parent->SetStatusText( _( "Project on network share, auto refresh not available" ), 0 );
|
m_Parent->SetStatusText( _( "Project on network share, auto refresh not available" ), 0 );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_Parent->SetStatusText( _( "" ), 0 );
|
m_Parent->SetStatusText( _( "" ), 0 );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
if( m_watcher )
|
if( m_watcher )
|
||||||
{
|
{
|
||||||
m_watcher->RemoveAll();
|
m_watcher->RemoveAll();
|
||||||
|
|
Loading…
Reference in New Issue