In my point of view these two are the same and both talk about two actions that respectively was done in the past.
But which one is correct and what is the difference between them if there is any?
- When we had finished dinner, we went out.
- When we finished dinner, we went out.