Apply suggestions from code review
Co-authored-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com> Signed-off-by: maskers <97827489+maskersss@users.noreply.github.com>
This commit is contained in:
parent
cf914526bf
commit
99bd4a8937
1 changed files with 4 additions and 6 deletions
|
@ -115,17 +115,15 @@ std::optional<QString> GuiUtil::uploadPaste(const QString& name, const QString&
|
||||||
QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No, QMessageBox::No)
|
QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No, QMessageBox::No)
|
||||||
->exec();
|
->exec();
|
||||||
|
|
||||||
if (truncateResponse == QMessageBox::Yes)
|
shouldTruncate = truncateResponse == QMessageBox::Yes;
|
||||||
shouldTruncate = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString textToUpload;
|
QString textToUpload = text;
|
||||||
if (shouldTruncate)
|
if (shouldTruncate) {
|
||||||
textToUpload = truncateLogForMclogs(text);
|
textToUpload = truncateLogForMclogs(text);
|
||||||
else
|
}
|
||||||
textToUpload = text;
|
|
||||||
|
|
||||||
std::unique_ptr<PasteUpload> paste(new PasteUpload(parentWidget, textToUpload, pasteCustomAPIBaseSetting, pasteTypeSetting));
|
std::unique_ptr<PasteUpload> paste(new PasteUpload(parentWidget, textToUpload, pasteCustomAPIBaseSetting, pasteTypeSetting));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue