Update launcher/ui/dialogs/skins/SkinManageDialog.cpp

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
(cherry picked from commit 69028969f1a6c42b698b900256ad2e6d9ee208eb)
This commit is contained in:
Alexandru Ionut Tripon 2024-10-21 22:59:51 +03:00 committed by github-actions[bot]
parent 199c5497d3
commit 6da14d66bb

View File

@ -139,7 +139,7 @@ void SkinManageDialog::on_fileBtn_clicked()
{
auto filter = QMimeDatabase().mimeTypeForName("image/png").filterString();
QString raw_path = QFileDialog::getOpenFileName(this, tr("Select Skin Texture"), QString(), filter);
if (raw_path.isEmpty()) {
if (raw_path.isNull()) {
return;
}
auto message = m_list.installSkin(raw_path, {});