# HG changeset patch # User Sam Izzo # Date 1345997406 -36000 # Node ID 6e479f33ea93b8ea23e42478129923c8c5181d16 # Parent 58ac1b19766642cc94cc7418d51976b217a8f69d * Prepend working folder path to filename when showing files in explorer diff -r 58ac1b197666 -r 6e479f33ea93 src/mainwindow.cpp --- a/src/mainwindow.cpp Mon Aug 27 01:45:26 2012 +1000 +++ b/src/mainwindow.cpp Mon Aug 27 02:10:06 2012 +1000 @@ -866,6 +866,12 @@ // Although the Win32 API is quite happy to have // forward slashes as directory separators, Windows // Explorer is not + int last = m_workFolderPath.length() - 1; + char c = m_workFolderPath[last].toAscii(); + if (c == '\\' || c == '/') { + m_workFolderPath.chop(1); + } + file = m_workFolderPath + "\\" + file; file = file.replace('/', '\\'); args << "/select," << file; // FIXME: This shouldn't be using a hardcoded path.