Improve error message of SettingsDialog
This commit is contained in:
parent
b51b53190b
commit
5d9b3e8be4
|
@ -85,20 +85,20 @@ set(DOC_FILES
|
||||||
)
|
)
|
||||||
|
|
||||||
set(REQUIRED_ICONS
|
set(REQUIRED_ICONS
|
||||||
window-close
|
dialog-cancel
|
||||||
|
dialog-ok
|
||||||
|
dialog-ok-apply
|
||||||
document-open
|
document-open
|
||||||
document-open-recent
|
document-open-recent
|
||||||
dialog-ok
|
|
||||||
dialog-cancel
|
|
||||||
edit-clear
|
edit-clear
|
||||||
dialog-ok-apply
|
|
||||||
system-file-manager
|
|
||||||
system-run
|
|
||||||
go-next
|
go-next
|
||||||
qtcreator
|
|
||||||
system-search
|
|
||||||
preferences-desktop-icons
|
preferences-desktop-icons
|
||||||
preferences-desktop-locale
|
preferences-desktop-locale
|
||||||
|
qtcreator
|
||||||
|
system-file-manager
|
||||||
|
system-run
|
||||||
|
system-search
|
||||||
|
window-close
|
||||||
)
|
)
|
||||||
|
|
||||||
# meta data
|
# meta data
|
||||||
|
|
|
@ -216,7 +216,7 @@ bool SettingsDialog::apply()
|
||||||
for(OptionPage *page : category->pages()) {
|
for(OptionPage *page : category->pages()) {
|
||||||
if(!page->apply()) {
|
if(!page->apply()) {
|
||||||
if(errorMessage.isEmpty()) {
|
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()) {
|
if(const_cast<const OptionPage *>(page)->errors().isEmpty()) {
|
||||||
errorMessage.append(QStringLiteral("<li><i>")
|
errorMessage.append(QStringLiteral("<li><i>")
|
||||||
|
|
Loading…
Reference in New Issue