浏览代码

Update firstlaunch_moc.cpp

Laserlicht 1 年之前
父节点
当前提交
0695502e89
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      launcher/firstLaunch/firstlaunch_moc.cpp

+ 1 - 1
launcher/firstLaunch/firstlaunch_moc.cpp

@@ -327,7 +327,7 @@ void FirstLaunchView::extractGogData()
 		QFile tmpFile(file);
 		if(!tmpFile.open(QIODevice::ReadOnly))
 		{
-			QMessageBox::critical(this, tr("File cannot opened"), titleErr);
+			QMessageBox::critical(this, tr("File cannot opened"), tmpFile.errorString());
 			return QString{};
 		}
 		QByteArray magicFile = tmpFile.read(magic.length());