diff src/mainwindow.cpp @ 680:21e03596dd93

Towards Win32 deployment
author Chris Cannam
date Fri, 07 Dec 2018 13:41:32 +0000
parents 0329bbd4b57c
children 5b3bcb2d0943
line wrap: on
line diff
--- a/src/mainwindow.cpp	Thu Dec 06 13:54:34 2018 +0000
+++ b/src/mainwindow.cpp	Fri Dec 07 13:41:32 2018 +0000
@@ -874,14 +874,13 @@
         // forward slashes as directory separators, Windows
         // Explorer is not
         int last = m_workFolderPath.length() - 1;
-        char c = m_workFolderPath[last].toAscii();
+        QChar c = m_workFolderPath[last];
         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.
         QProcess::execute("c:/windows/explorer.exe", args);
 #elif defined(Q_OS_MAC)
         file = m_workFolderPath + "/" + file;