Improve error message of SettingsDialog

This commit is contained in:
Martchus 2016-09-03 20:19:17 +02:00
parent b51b53190b
commit 5d9b3e8be4
2 changed files with 9 additions and 9 deletions

View File

@ -85,20 +85,20 @@ set(DOC_FILES
)
set(REQUIRED_ICONS
window-close
dialog-cancel
dialog-ok
dialog-ok-apply
document-open
document-open-recent
dialog-ok
dialog-cancel
edit-clear
dialog-ok-apply
system-file-manager
system-run
go-next
qtcreator
system-search
preferences-desktop-icons
preferences-desktop-locale
qtcreator
system-file-manager
system-run
system-search
window-close
)
# meta data

View File

@ -216,7 +216,7 @@ bool SettingsDialog::apply()
for(OptionPage *page : category->pages()) {
if(!page->apply()) {
if(errorMessage.isEmpty()) {
errorMessage = tr("<p><b>Errors occured when applying changes.</b></p><ul>");
errorMessage = tr("<p><b>Errors occured when applying changes:</b></p><ul>");
}
if(const_cast<const OptionPage *>(page)->errors().isEmpty()) {
errorMessage.append(QStringLiteral("<li><i>")