Skip to content

Commit 5cf0eed

Browse files
Merge pull request #31067 from cbjeukendrup/missing-negation
FIx close Preferences dialog due to missing negation
2 parents f2eec69 + 801fbeb commit 5cf0eed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/framework/shortcuts/internal/midiremote.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ bool MidiRemote::writeMidiMappings(const MidiMappingList& midiMappings) const
203203

204204
writer.endElement();
205205

206-
return mappingsFile.hasError();
206+
return !mappingsFile.hasError();
207207
}
208208

209209
void MidiRemote::writeMidiMapping(XmlStreamWriter& writer, const MidiControlsMapping& midiMapping) const

src/framework/shortcuts/internal/shortcutsregister.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ bool ShortcutsRegister::writeToFile(const ShortcutList& shortcuts, const io::pat
369369

370370
writer.endElement();
371371

372-
return file.hasError();
372+
return !file.hasError();
373373
}
374374

375375
void ShortcutsRegister::writeShortcut(XmlStreamWriter& writer, const Shortcut& shortcut) const

0 commit comments

Comments
 (0)