Qt: Disable saving/loading nameless profiles
Vicki Pfau vi@endrift.com
Sat, 06 Mar 2021 20:02:08 -0800
1 files changed,
6 insertions(+),
0 deletions(-)
M
src/platform/qt/InputController.cpp
→
src/platform/qt/InputController.cpp
@@ -178,6 +178,9 @@ #endif
} void InputController::loadProfile(uint32_t type, const QString& profile) { + if (profile.isEmpty()) { + return; + } bool loaded = mInputProfileLoad(&m_inputMap, type, m_config->input(), profile.toUtf8().constData()); recalibrateAxes(); if (!loaded) {@@ -207,6 +210,9 @@ m_config->write();
} void InputController::saveProfile(uint32_t type, const QString& profile) { + if (profile.isEmpty()) { + return; + } mInputProfileSave(&m_inputMap, type, m_config->input(), profile.toUtf8().constData()); m_config->write(); }