libcalamaresui: rename and document pastebin method

This commit is contained in:
Adriaan de Groot 2019-07-30 15:46:37 +02:00
parent 2aae30f517
commit 566be48f16
3 changed files with 11 additions and 4 deletions

View file

@ -245,7 +245,7 @@ ViewManager::onInstallationFailed( const QString& message, const QString& detail
if ( msgBox->buttonRole( button ) == QMessageBox::ButtonRole::YesRole )
{
// TODO: host and port should be configurable
QString pasteUrlMsg = CalamaresUtils::pastebin( msgBox, QStringLiteral( "termbin.com" ), 9999 );
QString pasteUrlMsg = CalamaresUtils::sendLogToPastebin( msgBox, QStringLiteral( "termbin.com" ), 9999 );
QString pasteUrlTitle = tr( "Install Log Paste URL" );
if ( pasteUrlMsg.isEmpty() )
@ -253,6 +253,7 @@ ViewManager::onInstallationFailed( const QString& message, const QString& detail
pasteUrlMsg = tr( "The upload was unsuccessful. No web-paste was done." );
}
// TODO: make the URL clickable, or copy it to the clipboard automatically
QMessageBox::critical(nullptr,
pasteUrlTitle,
pasteUrlMsg);