Update WndMainWindow.cpp
Merge pull request #1908 from mgaver/patch-5

Update WndMainWindow.cpp