fix config file writing

This commit is contained in:
Mathias Panzenböck
2014-02-16 18:02:41 +01:00
parent 7d2da6204d
commit d76571babf

View File

@ -177,7 +177,7 @@ bool JoyPad::readConfig( QTextStream &stream ) {
//only actually writes something if this JoyPad is NON DEFAULT.
void JoyPad::write( QTextStream &stream ) {
if (!axes.empty() || !buttons.empty()) {
stream << "Joystick " << index << " {\n";
stream << "Joystick " << (index+1) << " {\n";
foreach (Axis *axis, axes) {
axis->write(stream);
}