Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
KHangMan
Commits
fd91cfe7
Commit
fd91cfe7
authored
Jul 31, 2022
by
Laurent Montel
Browse files
KMessageBox::sorry is deprecated in kf5.97
parent
ca5cc288
Pipeline
#210932
passed with stage
in 2 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/khangman.cpp
View file @
fd91cfe7
...
...
@@ -153,7 +153,7 @@ void KHangMan::readFile()
"Please check your installation."
,
Prefs
::
selectedLanguage
(),
Prefs
::
levelFile
());
KMessageBox
::
sorry
(
this
,
mString
,
i18n
(
"Error"
));
KMessageBox
::
error
(
this
,
mString
,
i18n
(
"Error"
));
}
// Detects if file is a kvtml file so that it's a hint enable file
...
...
@@ -460,7 +460,7 @@ void KHangMan::show()
// kvtml files have been found
if
(
m_themeFactory
.
getQty
()
==
0
)
{
// themes not present
KMessageBox
::
sorry
(
this
,
i18n
(
"No theme files found."
),
i18n
(
"Error"
));
KMessageBox
::
error
(
this
,
i18n
(
"No theme files found."
),
i18n
(
"Error"
));
exit
(
EXIT_FAILURE
);
}
...
...
@@ -482,7 +482,7 @@ void KHangMan::loadLevels()
Prefs
::
self
()
->
save
();
levelFilenames
=
SharedKvtmlFiles
::
fileNames
(
Prefs
::
selectedLanguage
());
if
(
levelFilenames
.
isEmpty
())
{
KMessageBox
::
sorry
(
this
,
i18n
(
"No kvtml files found."
),
i18n
(
"Error"
));
KMessageBox
::
error
(
this
,
i18n
(
"No kvtml files found."
),
i18n
(
"Error"
));
exit
(
EXIT_FAILURE
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment