do the copy or the paste from the main window only the main window is active
enable the copy menu item only when there is selection in the log window