diff --git a/PowerEditor/src/winmain.cpp b/PowerEditor/src/winmain.cpp index 31db09183..22c00e7cc 100644 --- a/PowerEditor/src/winmain.cpp +++ b/PowerEditor/src/winmain.cpp @@ -337,12 +337,18 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int) sw = SW_MAXIMIZE; else if (::IsIconic(hNotepad_plus)) sw = SW_RESTORE; + +/* REMOVED else sw = SW_SHOW; // IMPORTANT !!! ::ShowWindow(hNotepad_plus, sw); - +DEVOMER*/ +/* ADDED */ + if (sw != 0) + ::ShowWindow(hNotepad_plus, sw); +/* DEDDA */ ::SetForegroundWindow(hNotepad_plus); if (params.size() > 0) //if there are files to open, use the WM_COPYDATA system