Commit 49e9ca34 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from deprecated KMessageBox::sorry

parent 30d55af6
Pipeline #208879 passed with stage
in 2 minutes and 4 seconds
......@@ -77,7 +77,7 @@ void DictionaryUpdateManager::checkInfoFile( KJob *job )
// Check if we have valid data to work with.
if( data.isNull() || data.isEmpty() )
{
KMessageBox::sorry( nullptr, i18n( "Update canceled.\nCould not read file." ) );
KMessageBox::error( nullptr, i18n( "Update canceled.\nCould not read file." ) );
job->deleteLater();
return;
}
......@@ -87,7 +87,7 @@ void DictionaryUpdateManager::checkInfoFile( KJob *job )
QTemporaryFile tempFile;
if( ! tempFile.open() )
{
KMessageBox::sorry( nullptr, i18n( "Update canceled.\nCould not open file." ) );
KMessageBox::error( nullptr, i18n( "Update canceled.\nCould not open file." ) );
qDebug() << "Could not open tempFile.";
tempFile.deleteLater();
job->deleteLater();
......@@ -104,7 +104,7 @@ void DictionaryUpdateManager::checkInfoFile( KJob *job )
// Maybe the format/content of (one or both) the files changed?
// or maybe one or both of the files could not be opened in the
// getFileDate function that would return an invalid empty date.
KMessageBox::sorry( nullptr, i18n( "Update canceled.\nThe update information file has an invalid date." ) );
KMessageBox::error( nullptr, i18n( "Update canceled.\nThe update information file has an invalid date." ) );
tempFile.deleteLater();
job->deleteLater();
return;
......@@ -318,7 +318,7 @@ void DictionaryUpdateManager::showUpdateResults()
}
else if( _succeeded.isEmpty() && ! _failed.isEmpty() )
{
KMessageBox::sorry( nullptr, i18n( "Failed to update:\n%1"
KMessageBox::error( nullptr, i18n( "Failed to update:\n%1"
, _failed.join( "\n" ) ) );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment