BUG: Add error log button to mainwindow

Fixes #1349
Fixes #2537