Skip to content

Commit 79c5708

Browse files
committed
Error dialog: expand Details box for controller mapping errors
1 parent 67a4880 commit 79c5708

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/controllers/midi/midicontroller.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ void MidiController::createOutputHandlers() {
151151
" Visit the manual for a complete list: ");
152152
detailsText += MIXXX_MANUAL_CONTROLS_URL + QStringLiteral("\n\n");
153153
detailsText += failures.join("\n");
154-
props->setDetails(detailsText);
154+
props->setDetails(detailsText,
155+
true /* use monospace font / expand Details box */);
155156
ErrorDialogHandler::instance()->requestErrorDialog(props);
156157
}
157158
}

src/controllers/scripting/legacy/controllerscriptenginelegacy.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,9 @@ bool ControllerScriptEngineLegacy::evaluateScriptFile(const QFileInfo& scriptFil
245245
// issue). Translating this will help users to fix the issue even
246246
// when they don't speak english.
247247
props->setDetails(tr("File:") + QStringLiteral(" ") + filename +
248-
QStringLiteral("\n") + tr("Error:") + QStringLiteral(" ") +
249-
input.errorString());
248+
QStringLiteral("\n") + tr("Error:") + QStringLiteral(" ") +
249+
input.errorString(),
250+
true /* use monospace font / expand Details box */);
250251

251252
// Ask above layer to display the dialog & handle user response
252253
ErrorDialogHandler::instance()->requestErrorDialog(props);

0 commit comments

Comments
 (0)