mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 14:34:42 -04:00
fix for issue #11 (Author mechtex)
This commit is contained in:
@ -17,7 +17,8 @@ DEFINES += SERVER_RELEASE NOMINMAX
|
|||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
|
|
||||||
LIBS += -L../dependencies/poppler/lib -loleaut32 -lole32
|
LIBS += -L../dependencies/poppler/lib -loleaut32 -lole32 -lshell32
|
||||||
|
|
||||||
|
|
||||||
isEqual(QT_MAJOR_VERSION, 5) {
|
isEqual(QT_MAJOR_VERSION, 5) {
|
||||||
LIBS += -lpoppler-qt5
|
LIBS += -lpoppler-qt5
|
||||||
|
@ -62,6 +62,10 @@
|
|||||||
|
|
||||||
#include "QsLog.h"
|
#include "QsLog.h"
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
#include <shellapi.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
//#include <QtMacExtras>
|
//#include <QtMacExtras>
|
||||||
#endif
|
#endif
|
||||||
@ -1607,9 +1611,8 @@ QFileInfo file = QDir::cleanPath(currentPath() + dmCV->getComicPath(modelIndex))
|
|||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QString filePath = file.absoluteFilePath();
|
QString filePath = file.absoluteFilePath();
|
||||||
QStringList args;
|
QString cmdArgs = QString("/select,\"") + QDir::toNativeSeparators(filePath) + QStringLiteral("\"");
|
||||||
args << "/select," << QDir::toNativeSeparators(filePath);
|
ShellExecuteW(0, L"open", L"explorer.exe", reinterpret_cast<LPCWSTR>(cmdArgs.utf16()), 0, SW_NORMAL);
|
||||||
QProcess::startDetached("explorer", args);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user