pathbar: Disconnect signals when disposing to avoid crashes
The path bar buttons are updated when the corresponding files are changed. Unfortunately, the "changed" signals are not disconnected when destroying the path bar. This can lead to crashes. Let's explicitly disconnect the signals when disposing of the buttons.
Fixes: #2192 (closed)
Edited by António Fernandes