diff options
| author | Tannin <devnull@localhost> | 2014-12-14 18:25:26 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-12-14 18:25:26 +0100 |
| commit | ebfeb2fbf95df4a2246ff2ef1cd6b48f373b70f3 (patch) | |
| tree | c0aae4337a991993c802ad5feff71a5b099b013a /src/mainwindow.cpp | |
| parent | f666e3d835147de3f044431474f92ec84fd8b801 (diff) | |
- mod-list can now be re-ordered with drag&drop while grouping is active
- drag&drop is not disabled when ordering by other columns than priority. MO will notify using messagedialog that it's impossible instead.
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 74690f19..0bdf4160 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2537,7 +2537,6 @@ static HRESULT CreateShortcut(LPCWSTR targetFileName, LPCWSTR arguments, qCritical("failed to create IShellLink instance"); return result; } - if (!SUCCEEDED(result)) return result; result = shellLink->SetPath(targetFileName); if (!SUCCEEDED(result)) { @@ -2545,6 +2544,7 @@ static HRESULT CreateShortcut(LPCWSTR targetFileName, LPCWSTR arguments, shellLink->Release(); return result; } + result = shellLink->SetArguments(arguments); if (!SUCCEEDED(result)) { qCritical("failed to set arguments: %ls", arguments); @@ -2570,7 +2570,7 @@ static HRESULT CreateShortcut(LPCWSTR targetFileName, LPCWSTR arguments, } } - IPersistFile* persistFile; + IPersistFile *persistFile; result = shellLink->QueryInterface(IID_IPersistFile, (LPVOID*)&persistFile); if (SUCCEEDED(result)) { wchar_t linkFileNameW[MAX_PATH]; |
