# HG changeset patch # User Chris Cannam # Date 1294151490 0 # Node ID c77c4d00a4fe5c7904e37c1eadab7296e7936081 # Parent 3d4291d4226ca69cd314fed59c282a1a53f18d4b# Parent 0844b4d8d91187bdab098cdaf14f44a727a89aac Merge diff -r 3d4291d4226c -r c77c4d00a4fe filestatuswidget.cpp --- a/filestatuswidget.cpp Tue Jan 04 14:31:22 2011 +0000 +++ b/filestatuswidget.cpp Tue Jan 04 14:31:30 2011 +0000 @@ -155,16 +155,24 @@ QDir d(m_localPath); if (d.exists()) { QStringList args; - args << d.canonicalPath(); + QString path = d.canonicalPath(); +#if defined Q_OS_WIN32 + // Although the Win32 API is quite happy to have + // forward slashes as directory separators, Windows + // Explorer is not + path = path.replace('/', '\\'); + args << path; + QProcess::execute("c:/windows/explorer.exe", args); +#else + args << path; QProcess::execute( -#if defined Q_OS_WIN32 - "c:/windows/explorer.exe", -#elif defined Q_OS_MAC +#if defined Q_OS_MAC "/usr/bin/open", #else "/usr/bin/xdg-open", #endif args); +#endif } }