fixed asan stuff

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-10-26 19:06:38 +03:00
parent 8b8ea2d270
commit 321bbf1fa8
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ SkinUpload::SkinUpload(QString token, QString path, QString variant) : NetReques
QNetworkReply* SkinUpload::getReply(QNetworkRequest& request) QNetworkReply* SkinUpload::getReply(QNetworkRequest& request)
{ {
QHttpMultiPart* multiPart = new QHttpMultiPart(QHttpMultiPart::FormDataType); QHttpMultiPart* multiPart = new QHttpMultiPart(QHttpMultiPart::FormDataType, this);
QHttpPart skin; QHttpPart skin;
skin.setHeader(QNetworkRequest::ContentTypeHeader, QVariant("image/png")); skin.setHeader(QNetworkRequest::ContentTypeHeader, QVariant("image/png"));

View File

@ -74,7 +74,7 @@ SkinManageDialog::SkinManageDialog(QWidget* parent, MinecraftAccountPtr acct)
contentsWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel); contentsWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
contentsWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); contentsWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
contentsWidget->installEventFilter(this); contentsWidget->installEventFilter(this);
contentsWidget->setItemDelegate(new ListViewDelegate()); contentsWidget->setItemDelegate(new ListViewDelegate(this));
contentsWidget->setAcceptDrops(true); contentsWidget->setAcceptDrops(true);
contentsWidget->setDropIndicatorShown(true); contentsWidget->setDropIndicatorShown(true);