From 53934aa6c7ee5a852541cb3fa12d7b254ca158bc Mon Sep 17 00:00:00 2001 From: jsmorley Date: Wed, 23 Jun 2010 18:03:55 +0000 Subject: [PATCH] Fix for context menu to use ConfigEditor or Windows association for .ini when doing "Edit Settings" --- Library/TrayWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/TrayWindow.cpp b/Library/TrayWindow.cpp index acd24c67..ec0d2af6 100644 --- a/Library/TrayWindow.cpp +++ b/Library/TrayWindow.cpp @@ -419,7 +419,7 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA std::wstring log = Rainmeter->GetLogFile(); if (_waccess(log.c_str(), 0) != -1) { - std::wstring command = L"Notepad.exe "; + std::wstring command = Rainmeter->GetConfigEditor(); command += log; LSExecute(tray->GetWindow(), command.c_str(), SW_SHOWNORMAL); } @@ -440,7 +440,7 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA message += L"\nDelete it to disable Rainmeter's logging"; MessageBox(tray->GetWindow(), message.c_str(), L"Rainmeter", MB_OK | MB_ICONINFORMATION); - std::wstring command = L"Notepad.exe "; + std::wstring command = Rainmeter->GetConfigEditor(); command += log; LSExecute(tray->GetWindow(), command.c_str(), SW_SHOWNORMAL); }