diff --git a/js/ui/shellMountOperation.js b/js/ui/shellMountOperation.js index a1cc81d5c..522ae0856 100644 --- a/js/ui/shellMountOperation.js +++ b/js/ui/shellMountOperation.js @@ -49,9 +49,9 @@ function _setButtonsForChoices(dialog, choices) { function _setLabelsForMessage(dialog, message) { let labels = message.split('\n'); - _setLabelText(dialog.subjectLabel, labels[0]); - if (labels.length > 1) - _setLabelText(dialog.descriptionLabel, labels[1]); + _setLabelText(dialog.subjectLabel, labels.shift()); + if (labels.length > 0) + _setLabelText(dialog.descriptionLabel, labels.join('\n')); } function _createIcon(gicon) {