only print the 50 first characters of undisplayed resources

This commit is contained in:
csoler 2021-03-13 22:28:06 +01:00
parent c9d7cb7e7e
commit f1b022a6c1

View File

@ -161,7 +161,11 @@ QVariant RSTextBrowser::loadResource(int type, const QUrl &name)
// case 4: otherwise, do not display
std::cerr << "TEXTBROWSER: refusing load ressource request: type=" << type << " scheme=" << name.scheme().toStdString() << ", url=" << name.toString().toStdString() << std::endl;
std::cerr << "TEXTBROWSER: refusing load ressource request: type=" << type << " scheme="
<< name.scheme().toStdString() << ", url="
<< name.toString().left(50).toStdString()
<< ((name.toString().length()>50)?"...":"")
<< std::endl;
if (mImageBlockWidget)
mImageBlockWidget->show();