diff options
| author | Tannin <devnull@localhost> | 2015-01-03 12:34:26 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-01-03 12:34:26 +0100 |
| commit | e7b6a7cbddec32d300a1f758281c717402525053 (patch) | |
| tree | 1f6415a5c53b05319e7035917e654f09bfee5e7a /src/mainwindow.cpp | |
| parent | ab925e1e7ca7c2b82c69c9db30848a025d94f75a (diff) | |
- bugfix: no exec info returned for .exe
- bugfix: wide string conversion functions seem to have failed for empty string
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7cc18f6b..bf2d6139 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4498,8 +4498,7 @@ void MainWindow::writeDataToFile() } -int MainWindow::getBinaryExecuteInfo(const QFileInfo &targetInfo, - QFileInfo &binaryInfo, QString &arguments) +int MainWindow::getBinaryExecuteInfo(const QFileInfo &targetInfo, QFileInfo &binaryInfo, QString &arguments) { QString extension = targetInfo.completeSuffix(); if ((extension.compare("cmd", Qt::CaseInsensitive)) || @@ -4510,6 +4509,7 @@ int MainWindow::getBinaryExecuteInfo(const QFileInfo &targetInfo, return 1; } else if (extension.compare("exe", Qt::CaseInsensitive) == 0) { binaryInfo = targetInfo; + return 1; } else if (extension.compare("jar", Qt::CaseInsensitive) == 0) { // types that need to be injected into std::wstring targetPathW = ToWString(targetInfo.absoluteFilePath()); |
