Patch for "Middle click popup does not show mine or irrigation build activities"

Patch by Marko Lindqvist (cazfi@gna). See gna bug #21660.