Resolved issue #403. Tape - Button "Show in Explorer" is not working.
--HG-- branch : develop
This commit is contained in:
parent
e28721565a
commit
b0211b09c9
|
@ -2684,7 +2684,7 @@ void TMainWindow::InitGender(QComboBox *gender)
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void TMainWindow::ShowInGraphicalShell()
|
void TMainWindow::ShowInGraphicalShell()
|
||||||
{
|
{
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_OS_MAC
|
||||||
QStringList args;
|
QStringList args;
|
||||||
args << "-e";
|
args << "-e";
|
||||||
args << "tell application \"Finder\"";
|
args << "tell application \"Finder\"";
|
||||||
|
@ -2695,11 +2695,8 @@ void TMainWindow::ShowInGraphicalShell()
|
||||||
args << "-e";
|
args << "-e";
|
||||||
args << "end tell";
|
args << "end tell";
|
||||||
QProcess::startDetached("osascript", args);
|
QProcess::startDetached("osascript", args);
|
||||||
#elif defined(Q_WS_WIN)
|
#elif defined(Q_OS_WIN)
|
||||||
QStringList args;
|
QProcess::startDetached(QString("explorer /select, \"%1\"").arg(QDir::toNativeSeparators(curFile)));
|
||||||
args << "/select," << QDir::toNativeSeparators(curFile);
|
|
||||||
const QString command = "explorer" + " " + args;
|
|
||||||
QProcess::startDetached(command);
|
|
||||||
#else
|
#else
|
||||||
const QString app = "xdg-open %d";
|
const QString app = "xdg-open %d";
|
||||||
QString cmd;
|
QString cmd;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user