In the preferences page it's not possible to browse over the sections.
All the widgets of this page are stored in a QStackLayout object,
which is populated at the init of Preferences. The addWidget method of
QStackLayout returns the index of the widget that was added. This always
returns 0 because is working like a stack.

The solution is to get the correct index with the indexOf function, and
use this value to map each section.
Merge pull request #1860 from ericho/ericho-testing

In the preferences page it's not possible to browse over sections.