From 33efcbac351cac40a12b3e7054720da8cb02d5bd Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sat, 6 Jan 2024 00:04:01 +0100 Subject: [PATCH] fix deprecated --- launcher/firstLaunch/firstlaunch_moc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/firstLaunch/firstlaunch_moc.cpp b/launcher/firstLaunch/firstlaunch_moc.cpp index 9931f9fa4..80fafd5cd 100644 --- a/launcher/firstLaunch/firstlaunch_moc.cpp +++ b/launcher/firstLaunch/firstlaunch_moc.cpp @@ -279,7 +279,7 @@ void FirstLaunchView::copyHeroesData(const QString & path) QDir sourceRoot = QDir(path); if(path.isEmpty()) - sourceRoot = QFileDialog::getExistingDirectory(this, "", "", QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks); + sourceRoot.setPath(QFileDialog::getExistingDirectory(this, "", "", QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks)); if(!sourceRoot.exists()) return;