Ver código fonte

Merge pull request #4243 from Laserlicht/patch-3

extend file open error text
Ivan Savenko 1 ano atrás
pai
commit
ccef09db91
1 arquivos alterados com 1 adições e 1 exclusões
  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());